home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / os2 / gnucal.zip / configure < prev    next >
Text File  |  1995-12-09  |  89KB  |  3,155 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.7 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.       --enable-feature=DIGIT+DIGIT+... where DIGIT is 1...6"
  16. ac_help="$ac_help
  17.   (1) --enable-cath       additional Catholic holidays."
  18. ac_help="$ac_help
  19.   (2) --enable-debug      includes some debugging code."
  20. ac_help="$ac_help
  21.   (3) --enable-easci      displaying using the extended ASCII character set."
  22. ac_help="$ac_help
  23.   (4) --enable-ger        defaults German texts, holidays and calendar style."
  24. ac_help="$ac_help
  25.   (5) --enable-ushdy      U.S. specific holidays."
  26. ac_help="$ac_help
  27.   (6) --enable-exit127    on --help etc. terminate with exit status 127."
  28. ac_help="$ac_help
  29.       --enable-greg-ref=YEAR      year of Gregorian reform, either 1582 or 1752."
  30. ac_help="$ac_help
  31.       --disable-hls       never use highlighting sequences."
  32. ac_help="$ac_help
  33.       --disable-pager     never use external or simple, internal pager feature."
  34. ac_help="$ac_help
  35.       --disable-rc        never use fixed date warnings feature."
  36. ac_help="$ac_help
  37.       --disable-term      never use libtermcap or libtermlib."
  38.  
  39. # Initialize some variables set by options.
  40. # The variables have the same names as the options, with
  41. # dashes changed to underlines.
  42. build=NONE
  43. cache_file=./config.cache
  44. exec_prefix=NONE
  45. host=NONE
  46. no_create=
  47. nonopt=NONE
  48. no_recursion=
  49. prefix=NONE
  50. program_prefix=NONE
  51. program_suffix=NONE
  52. program_transform_name=s,x,x,
  53. silent=
  54. site=
  55. srcdir=
  56. target=NONE
  57. verbose=
  58. x_includes=NONE
  59. x_libraries=NONE
  60. bindir='${exec_prefix}/bin'
  61. sbindir='${exec_prefix}/sbin'
  62. libexecdir='${exec_prefix}/libexec'
  63. datadir='${prefix}/share'
  64. sysconfdir='${prefix}/etc'
  65. sharedstatedir='${prefix}/com'
  66. localstatedir='${prefix}/var'
  67. libdir='${exec_prefix}/lib'
  68. includedir='${prefix}/include'
  69. oldincludedir='/usr/include'
  70. infodir='${prefix}/info'
  71. mandir='${prefix}/man'
  72.  
  73. # Initialize some other variables.
  74. subdirs=
  75. MFLAGS= MAKEFLAGS=
  76.  
  77. ac_prev=
  78. for ac_option
  79. do
  80.  
  81.   # If the previous option needs an argument, assign it.
  82.   if test -n "$ac_prev"; then
  83.     eval "$ac_prev=\$ac_option"
  84.     ac_prev=
  85.     continue
  86.   fi
  87.  
  88.   case "$ac_option" in
  89.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  90.   *) ac_optarg= ;;
  91.   esac
  92.  
  93.   # Accept the important Cygnus configure options, so we can diagnose typos.
  94.  
  95.   case "$ac_option" in
  96.  
  97.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  98.     ac_prev=bindir ;;
  99.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  100.     bindir="$ac_optarg" ;;
  101.  
  102.   -build | --build | --buil | --bui | --bu)
  103.     ac_prev=build ;;
  104.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  105.     build="$ac_optarg" ;;
  106.  
  107.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  108.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  109.     ac_prev=cache_file ;;
  110.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  111.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  112.     cache_file="$ac_optarg" ;;
  113.  
  114.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  115.     ac_prev=datadir ;;
  116.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  117.   | --da=*)
  118.     datadir="$ac_optarg" ;;
  119.  
  120.   -disable-* | --disable-*)
  121.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  122.     # Reject names that are not valid shell variable names.
  123.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  124.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  125.     fi
  126.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  127.     eval "enable_${ac_feature}=no" ;;
  128.  
  129.   -enable-* | --enable-*)
  130.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  131.     # Reject names that are not valid shell variable names.
  132.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  133.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  134.     fi
  135.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  136.     case "$ac_option" in
  137.       *=*) ;;
  138.       *) ac_optarg=yes ;;
  139.     esac
  140.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  141.  
  142.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  143.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  144.   | --exec | --exe | --ex)
  145.     ac_prev=exec_prefix ;;
  146.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  147.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  148.   | --exec=* | --exe=* | --ex=*)
  149.     exec_prefix="$ac_optarg" ;;
  150.  
  151.   -gas | --gas | --ga | --g)
  152.     # Obsolete; use --with-gas.
  153.     with_gas=yes ;;
  154.  
  155.   -help | --help | --hel | --he)
  156.     # Omit some internal or obsolete options to make the list less imposing.
  157.     # This message is too long to be a string in the A/UX 3.1 sh.
  158.     cat << EOF
  159. Usage: configure [options] [host]
  160. Options: [defaults in brackets after descriptions]
  161. Configuration:
  162.   --cache-file=FILE       cache test results in FILE
  163.   --help                  print this message
  164.   --no-create             do not create output files
  165.   --quiet, --silent       do not print \`checking...' messages
  166.   --version               print the version of autoconf that created configure
  167. Directory and file names:
  168.   --prefix=PREFIX         install architecture-independent files in PREFIX
  169.                           [$ac_default_prefix]
  170.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  171.                           [same as prefix]
  172.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  173.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  174.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  175.   --datadir=DIR           read-only architecture-independent data in DIR
  176.                           [PREFIX/share]
  177.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  178.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  179.                           [PREFIX/com]
  180.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  181.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  182.   --includedir=DIR        C header files in DIR [PREFIX/include]
  183.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  184.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  185.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  186.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  187.   --program-prefix=PREFIX prepend PREFIX to installed program names
  188.   --program-suffix=SUFFIX append SUFFIX to installed program names
  189.   --program-transform-name=PROGRAM
  190.                           run sed PROGRAM on installed program names
  191. EOF
  192.     cat << EOF
  193. Host type:
  194.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  195.   --host=HOST             configure for HOST [guessed]
  196.   --target=TARGET         configure for TARGET [TARGET=HOST]
  197. Features and packages:
  198.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  199.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  200.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  201.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  202.   --x-includes=DIR        X include files are in DIR
  203.   --x-libraries=DIR       X library files are in DIR
  204. EOF
  205.     if test -n "$ac_help"; then
  206.       echo "--enable and --with options recognized:$ac_help"
  207.     fi
  208.     exit 0 ;;
  209.  
  210.   -host | --host | --hos | --ho)
  211.     ac_prev=host ;;
  212.   -host=* | --host=* | --hos=* | --ho=*)
  213.     host="$ac_optarg" ;;
  214.  
  215.   -includedir | --includedir | --includedi | --included | --include \
  216.   | --includ | --inclu | --incl | --inc)
  217.     ac_prev=includedir ;;
  218.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  219.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  220.     includedir="$ac_optarg" ;;
  221.  
  222.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  223.     ac_prev=infodir ;;
  224.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  225.     infodir="$ac_optarg" ;;
  226.  
  227.   -libdir | --libdir | --libdi | --libd)
  228.     ac_prev=libdir ;;
  229.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  230.     libdir="$ac_optarg" ;;
  231.  
  232.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  233.   | --libexe | --libex | --libe)
  234.     ac_prev=libexecdir ;;
  235.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  236.   | --libexe=* | --libex=* | --libe=*)
  237.     libexecdir="$ac_optarg" ;;
  238.  
  239.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  240.   | --localstate | --localstat | --localsta | --localst \
  241.   | --locals | --local | --loca | --loc | --lo)
  242.     ac_prev=localstatedir ;;
  243.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  244.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  245.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  246.     localstatedir="$ac_optarg" ;;
  247.  
  248.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  249.     ac_prev=mandir ;;
  250.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  251.     mandir="$ac_optarg" ;;
  252.  
  253.   -nfp | --nfp | --nf)
  254.     # Obsolete; use --without-fp.
  255.     with_fp=no ;;
  256.  
  257.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  258.   | --no-cr | --no-c)
  259.     no_create=yes ;;
  260.  
  261.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  262.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  263.     no_recursion=yes ;;
  264.  
  265.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  266.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  267.   | --oldin | --oldi | --old | --ol | --o)
  268.     ac_prev=oldincludedir ;;
  269.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  270.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  271.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  272.     oldincludedir="$ac_optarg" ;;
  273.  
  274.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  275.     ac_prev=prefix ;;
  276.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  277.     prefix="$ac_optarg" ;;
  278.  
  279.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  280.   | --program-pre | --program-pr | --program-p)
  281.     ac_prev=program_prefix ;;
  282.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  283.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  284.     program_prefix="$ac_optarg" ;;
  285.  
  286.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  287.   | --program-suf | --program-su | --program-s)
  288.     ac_prev=program_suffix ;;
  289.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  290.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  291.     program_suffix="$ac_optarg" ;;
  292.  
  293.   -program-transform-name | --program-transform-name \
  294.   | --program-transform-nam | --program-transform-na \
  295.   | --program-transform-n | --program-transform- \
  296.   | --program-transform | --program-transfor \
  297.   | --program-transfo | --program-transf \
  298.   | --program-trans | --program-tran \
  299.   | --progr-tra | --program-tr | --program-t)
  300.     ac_prev=program_transform_name ;;
  301.   -program-transform-name=* | --program-transform-name=* \
  302.   | --program-transform-nam=* | --program-transform-na=* \
  303.   | --program-transform-n=* | --program-transform-=* \
  304.   | --program-transform=* | --program-transfor=* \
  305.   | --program-transfo=* | --program-transf=* \
  306.   | --program-trans=* | --program-tran=* \
  307.   | --progr-tra=* | --program-tr=* | --program-t=*)
  308.     program_transform_name="$ac_optarg" ;;
  309.  
  310.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  311.   | -silent | --silent | --silen | --sile | --sil)
  312.     silent=yes ;;
  313.  
  314.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  315.     ac_prev=sbindir ;;
  316.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  317.   | --sbi=* | --sb=*)
  318.     sbindir="$ac_optarg" ;;
  319.  
  320.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  321.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  322.   | --sharedst | --shareds | --shared | --share | --shar \
  323.   | --sha | --sh)
  324.     ac_prev=sharedstatedir ;;
  325.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  326.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  327.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  328.   | --sha=* | --sh=*)
  329.     sharedstatedir="$ac_optarg" ;;
  330.  
  331.   -site | --site | --sit)
  332.     ac_prev=site ;;
  333.   -site=* | --site=* | --sit=*)
  334.     site="$ac_optarg" ;;
  335.  
  336.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  337.     ac_prev=srcdir ;;
  338.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  339.     srcdir="$ac_optarg" ;;
  340.  
  341.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  342.   | --syscon | --sysco | --sysc | --sys | --sy)
  343.     ac_prev=sysconfdir ;;
  344.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  345.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  346.     sysconfdir="$ac_optarg" ;;
  347.  
  348.   -target | --target | --targe | --targ | --tar | --ta | --t)
  349.     ac_prev=target ;;
  350.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  351.     target="$ac_optarg" ;;
  352.  
  353.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  354.     verbose=yes ;;
  355.  
  356.   -version | --version | --versio | --versi | --vers)
  357.     echo "configure generated by autoconf version 2.7"
  358.     exit 0 ;;
  359.  
  360.   -with-* | --with-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     case "$ac_option" in
  368.       *=*) ;;
  369.       *) ac_optarg=yes ;;
  370.     esac
  371.     eval "with_${ac_package}='$ac_optarg'" ;;
  372.  
  373.   -without-* | --without-*)
  374.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  375.     # Reject names that are not valid shell variable names.
  376.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  377.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  378.     fi
  379.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  380.     eval "with_${ac_package}=no" ;;
  381.  
  382.   --x)
  383.     # Obsolete; use --with-x.
  384.     with_x=yes ;;
  385.  
  386.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  387.   | --x-incl | --x-inc | --x-in | --x-i)
  388.     ac_prev=x_includes ;;
  389.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  390.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  391.     x_includes="$ac_optarg" ;;
  392.  
  393.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  394.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  395.     ac_prev=x_libraries ;;
  396.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  397.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  398.     x_libraries="$ac_optarg" ;;
  399.  
  400.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  401.     ;;
  402.  
  403.   *)
  404.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  405.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  406.     fi
  407.     if test "x$nonopt" != xNONE; then
  408.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  409.     fi
  410.     nonopt="$ac_option"
  411.     ;;
  412.  
  413.   esac
  414. done
  415.  
  416. if test -n "$ac_prev"; then
  417.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  418. fi
  419.  
  420. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  421.  
  422. # File descriptor usage:
  423. # 0 standard input
  424. # 1 file creation
  425. # 2 errors and warnings
  426. # 3 some systems may open it to /dev/tty
  427. # 4 used on the Kubota Titan
  428. # 6 checking for... messages and results
  429. # 5 compiler messages saved in config.log
  430. if test "$silent" = yes; then
  431.   exec 6>/dev/null
  432. else
  433.   exec 6>&1
  434. fi
  435. exec 5>./config.log
  436.  
  437. echo "\
  438. This file contains any messages produced by compilers while
  439. running configure, to aid debugging if configure makes a mistake.
  440. " 1>&5
  441.  
  442. # Strip out --no-create and --no-recursion so they do not pile up.
  443. # Also quote any args containing shell metacharacters.
  444. ac_configure_args=
  445. for ac_arg
  446. do
  447.   case "$ac_arg" in
  448.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  449.   | --no-cr | --no-c) ;;
  450.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  451.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  452.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  453.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  454.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  455.   esac
  456. done
  457.  
  458. # NLS nuisances.
  459. # Only set LANG and LC_ALL to C if already set.
  460. # These must not be set unconditionally because not all systems understand
  461. # e.g. LANG=C (notably SCO).
  462. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  463. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  464.  
  465. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  466. rm -rf conftest* confdefs.h
  467. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  468. echo > confdefs.h
  469.  
  470. # A filename unique to this package, relative to the directory that
  471. # configure is in, which we can look for to find out if srcdir is correct.
  472. ac_unique_file=gcal_def.h
  473.  
  474. # Find the source files, if location was not specified.
  475. if test -z "$srcdir"; then
  476.   ac_srcdir_defaulted=yes
  477.   # Try the directory containing this script, then its parent.
  478.   ac_prog=$0
  479.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  480.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  481.   srcdir=$ac_confdir
  482.   if test ! -r $srcdir/$ac_unique_file; then
  483.     srcdir=..
  484.   fi
  485. else
  486.   ac_srcdir_defaulted=no
  487. fi
  488. if test ! -r $srcdir/$ac_unique_file; then
  489.   if test "$ac_srcdir_defaulted" = yes; then
  490.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  491.   else
  492.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  493.   fi
  494. fi
  495. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  496.  
  497. # Prefer explicitly selected file to automatically selected ones.
  498. if test -z "$CONFIG_SITE"; then
  499.   if test "x$prefix" != xNONE; then
  500.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  501.   else
  502.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  503.   fi
  504. fi
  505. for ac_site_file in $CONFIG_SITE; do
  506.   if test -r "$ac_site_file"; then
  507.     echo "loading site script $ac_site_file"
  508.     . "$ac_site_file"
  509.   fi
  510. done
  511.  
  512. if test -r "$cache_file"; then
  513.   echo "loading cache $cache_file"
  514.   . $cache_file
  515. else
  516.   echo "creating cache $cache_file"
  517.   > $cache_file
  518. fi
  519.  
  520. ac_ext=c
  521. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  522. ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  523. $CPP $CPPFLAGS'
  524. ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  525. ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  526. ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  527. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  528.  
  529. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  530.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  531.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  532.     ac_n= ac_c='
  533. ' ac_t='    '
  534.   else
  535.     ac_n=-n ac_c= ac_t=
  536.   fi
  537. else
  538.   ac_n= ac_c='\c' ac_t=
  539. fi
  540.  
  541. # From configure.in Id: configure.in 2.4 1995/12/09 02:04:00 tom Exp 
  542. gcal_distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/^.*"\(.*\)".*$/\1/' $srcdir/$ac_unique_file`
  543. echo
  544. echo "this is the automatic configuration step of $gcal_distname"
  545. echo
  546. echo "    --enable-feature=DIGIT+DIGIT+... where DIGIT is 1...6"
  547. echo
  548. echo "(1) --enable-cath    additional Catholic holidays."
  549. echo "(2) --enable-debug   includes some debugging code."
  550. echo "(3) --enable-easci   displaying using the extended ASCII character set."
  551. echo "(4) --enable-ger     defaults German texts, holidays and calendar style."
  552. echo "(5) --enable-ushdy   U.S. specific holidays."
  553. echo "(6) --enable-exit127 on --help, --version and --license, terminate"
  554. echo "                     with exit status 127, otherwise with 0."
  555. echo
  556. echo "    --enable-greg-ref=YEAR  year of Gregorian reform, either 1582 or 1752."
  557. echo
  558. echo "    --disable-hls    never use highlighting sequences."
  559. echo "    --disable-pager  never use external or simple, internal pager feature."
  560. echo "    --disable-rc     never use fixed date warnings feature."
  561. echo "    --disable-term   never use libtermcap or libtermlib."
  562. echo
  563. echo "please wait..."
  564. echo
  565.  
  566. echo $ac_n "checking for package options""... $ac_c" 1>&6
  567. gcal_lang=English
  568. gcal_arglist=
  569. gcal_enabled=
  570. gcal_implicit=
  571. gcal_illegal_defined=
  572. gcal_multiple_defined=
  573. gcal_enable_cath=no
  574. gcal_enable_debug=no
  575. gcal_enable_easci=no
  576. gcal_enable_ger=no
  577. gcal_enable_ushdy=no
  578. gcal_enable_exit127=no
  579. gcal_enable_hls=yes
  580. gcal_enable_pager=yes
  581. gcal_enable_rc=yes
  582. gcal_enable_term=yes
  583. # Check whether --enable-feature or --disable-feature was given.
  584. if test "${enable_feature+set}" = set; then
  585.   enableval="$enable_feature"
  586.   gcal_feature=feature
  587.    IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}+"
  588.    for gcal_arg in $enableval; do
  589.      case $gcal_arg in
  590.        1) gcal_feature=cath
  591.           gcal_arglist="$gcal_arglist $gcal_feature"
  592.           if test "$gcal_enable_cath" != yes; then
  593.             cat >> confdefs.h <<\EOF
  594. #define USE_CATH 1
  595. EOF
  596.  
  597.             gcal_enable_cath=yes
  598.             gcal_enabled="$gcal_enabled $gcal_feature"
  599.           else
  600.             gcal_multiple_defined="$gcal_feature"
  601.           fi;;
  602.        2) gcal_feature=debug
  603.           gcal_arglist="$gcal_arglist $gcal_feature"
  604.           if test "$gcal_enable_debug" != yes; then
  605.             cat >> confdefs.h <<\EOF
  606. #define DEBUG 1
  607. EOF
  608.  
  609.             gcal_enable_debug=yes
  610.             gcal_enabled="$gcal_enabled $gcal_feature"
  611.           else
  612.             gcal_multiple_defined="$gcal_feature"
  613.           fi;;
  614.        3) gcal_feature=easci
  615.           gcal_arglist="$gcal_arglist $gcal_feature"
  616.           if test "$gcal_enable_easci" != yes; then
  617.             cat >> confdefs.h <<\EOF
  618. #define USE_EASC 1
  619. EOF
  620.  
  621.             gcal_enable_easci=yes
  622.             gcal_enabled="$gcal_enabled $gcal_feature"
  623.           else
  624.             gcal_multiple_defined="$gcal_feature"
  625.           fi;;
  626.        4) gcal_feature=ger
  627.           gcal_arglist="$gcal_arglist $gcal_feature"
  628.           if test "$gcal_enable_ger" != yes; then
  629.             if test "$enable_ushdy" != yes; then
  630.               cat >> confdefs.h <<\EOF
  631. #define USE_GER 1
  632. EOF
  633.  
  634.               gcal_lang=German
  635.               gcal_enable_ger=yes
  636.               gcal_enabled="$gcal_enabled $gcal_feature"
  637.             fi
  638.           else
  639.             gcal_multiple_defined="$gcal_feature"
  640.           fi;;
  641.        5) gcal_feature=ushdy
  642.           gcal_arglist="$gcal_arglist $gcal_feature"
  643.           if test "$gcal_enable_ushdy" != yes; then
  644.             if test "$gcal_lang" != German; then
  645.               cat >> confdefs.h <<\EOF
  646. #define USE_USHDY 1
  647. EOF
  648.  
  649.               gcal_lang=American
  650.               gcal_enable_ushdy=yes
  651.               gcal_enabled="$gcal_enabled $gcal_feature"
  652.             fi
  653.           else
  654.             gcal_multiple_defined="$gcal_feature"
  655.           fi;;
  656.        6) gcal_feature=exit127
  657.           gcal_arglist="$gcal_arglist $gcal_feature"
  658.           if test "$gcal_enable_exit127" != yes; then
  659.             cat >> confdefs.h <<\EOF
  660. #define EXIT_STAT_HLP 127
  661. EOF
  662.  
  663.             gcal_enable_exit127=yes
  664.             gcal_enabled="$gcal_enabled $gcal_feature"
  665.           else
  666.             gcal_multiple_defined="$gcal_feature"
  667.           fi;;
  668.        *) if test "$gcal_arg" = no; then
  669.             gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  670.           else
  671.             echo "$ac_t""hmm... whats this??" 1>&6
  672.             echo "$ac_t""" 1>&6
  673.             if test "$gcal_arg" = yes; then
  674.               { echo "configure: error: not --enable-feature=DIGIT+DIGIT... given - aborting..." 1>&2; exit 1; }
  675.             else
  676.               { echo "configure: error: invalid --enable-feature=$gcal_arg given - aborting..." 1>&2; exit 1; }
  677.             fi
  678.           fi;;
  679.      esac
  680.    done
  681.    IFS="$ac_save_ifs"
  682. fi
  683.  
  684. # Check whether --enable-cath or --disable-cath was given.
  685. if test "${enable_cath+set}" = set; then
  686.   enableval="$enable_cath"
  687.   gcal_feature=cath
  688.    if test "$enableval" = yes; then
  689.      gcal_arglist="$gcal_arglist $gcal_feature"
  690.      if test "$gcal_enable_cath" = yes; then
  691.        gcal_multiple_defined="$gcal_feature"
  692.      else
  693.        cat >> confdefs.h <<\EOF
  694. #define USE_CATH 1
  695. EOF
  696.  
  697.        gcal_enabled="$gcal_enabled $gcal_feature"
  698.      fi
  699.    else
  700.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  701.    fi
  702. fi
  703.  
  704. # Check whether --enable-debug or --disable-debug was given.
  705. if test "${enable_debug+set}" = set; then
  706.   enableval="$enable_debug"
  707.   gcal_feature=debug
  708.    if test "$enableval" = yes; then
  709.      gcal_arglist="$gcal_arglist $gcal_feature"
  710.      if test "$gcal_enable_debug" = yes; then
  711.        gcal_multiple_defined="$gcal_feature"
  712.      else
  713.        cat >> confdefs.h <<\EOF
  714. #define DEBUG 1
  715. EOF
  716.  
  717.        gcal_enabled="$gcal_enabled $gcal_feature"
  718.      fi
  719.    else
  720.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  721.    fi
  722. fi
  723.  
  724. # Check whether --enable-easci or --disable-easci was given.
  725. if test "${enable_easci+set}" = set; then
  726.   enableval="$enable_easci"
  727.   gcal_feature=easci
  728.    if test "$enableval" = yes; then
  729.      gcal_arglist="$gcal_arglist $gcal_feature"
  730.      if test "$gcal_enable_easci" = yes; then
  731.        gcal_multiple_defined="$gcal_feature"
  732.      else
  733.        cat >> confdefs.h <<\EOF
  734. #define USE_EASC 1
  735. EOF
  736.  
  737.        gcal_enabled="$gcal_enabled $gcal_feature"
  738.      fi
  739.    else
  740.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  741.    fi
  742. fi
  743.  
  744. # Check whether --enable-ger or --disable-ger was given.
  745. if test "${enable_ger+set}" = set; then
  746.   enableval="$enable_ger"
  747.   gcal_feature=ger
  748.    if test "$enableval" = yes; then
  749.      gcal_arglist="$gcal_arglist $gcal_feature"
  750.      if test "$gcal_enable_ger" = yes; then
  751.        gcal_multiple_defined="$gcal_feature"
  752.      else
  753.        cat >> confdefs.h <<\EOF
  754. #define USE_GER 1
  755. EOF
  756.  
  757.        gcal_lang=German
  758.        gcal_enabled="$gcal_enabled $gcal_feature"
  759.      fi
  760.    else
  761.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  762.    fi
  763. fi
  764.  
  765. # Check whether --enable-ushdy or --disable-ushdy was given.
  766. if test "${enable_ushdy+set}" = set; then
  767.   enableval="$enable_ushdy"
  768.   gcal_feature=ushdy
  769.    if test "$enableval" = yes; then
  770.      gcal_arglist="$gcal_arglist $gcal_feature"
  771.      if test "$gcal_enable_ushdy" = yes; then
  772.        gcal_multiple_defined="$gcal_feature"
  773.      else
  774.        cat >> confdefs.h <<\EOF
  775. #define USE_USHDY 1
  776. EOF
  777.  
  778.        if test "$gcal_lang" != German; then
  779.          gcal_lang=American
  780.        fi
  781.        gcal_enabled="$gcal_enabled $gcal_feature"
  782.      fi
  783.    else
  784.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  785.    fi
  786. fi
  787.  
  788. # Check whether --enable-exit127 or --disable-exit127 was given.
  789. if test "${enable_exit127+set}" = set; then
  790.   enableval="$enable_exit127"
  791.   gcal_feature=exit127
  792.    if test "$enableval" = yes; then
  793.      gcal_arglist="$gcal_arglist $gcal_feature"
  794.      if test "$gcal_enable_exit127" = yes; then
  795.        gcal_multiple_defined="$gcal_feature"
  796.      else
  797.        cat >> confdefs.h <<\EOF
  798. #define EXIT_STAT_HLP 127
  799. EOF
  800.  
  801.        gcal_enabled="$gcal_enabled $gcal_feature"
  802.      fi
  803.    else
  804.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  805.    fi
  806. fi
  807.  
  808. # Check whether --enable-greg-ref or --disable-greg-ref was given.
  809. if test "${enable_greg_ref+set}" = set; then
  810.   enableval="$enable_greg_ref"
  811.   gcal_feature=greg-ref
  812.    gcal_invalid_year=no
  813.    gcal_got_year=yes
  814.    if test "$enableval" != no; then
  815.           gcal_gr=`echo $enableval | sed -e 's/[^0-9]//g' -e 's/^0+/*/g'`
  816.           if test "$gcal_gr" = "$enableval"; then
  817.        if test -n "$gcal_gr"; then
  818.          if test "$gcal_gr" -gt "0"; then
  819.            if test "$gcal_gr" -eq "1582" || test "$gcal_gr" -eq "1752"; then
  820.              cat >> confdefs.h <<EOF
  821. #define GREG_${gcal_gr} 1
  822. EOF
  823.  
  824.              gcal_enabled="$gcal_enabled $gcal_feature=$gcal_gr"
  825.              gcal_arglist="$gcal_arglist $gcal_feature=$gcal_gr"
  826.            else
  827.              gcal_invalid_year=yes
  828.            fi
  829.          else
  830.            gcal_invalid_year=yes
  831.          fi
  832.        else
  833.          gcal_invalid_year=yes
  834.        fi
  835.      else
  836.        if test "$enableval" != yes; then
  837.          gcal_invalid_year=yes
  838.        else
  839.          gcal_got_year=no
  840.        fi
  841.      fi
  842.    else
  843.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  844.    fi
  845.    if test "$gcal_invalid_year" = yes || test "$gcal_got_year" = no; then
  846.      echo "$ac_t""hmm... whats this??" 1>&6
  847.      echo "$ac_t""" 1>&6
  848.      if test "$gcal_got_year" = no; then
  849.        { echo "configure: error: not $gcal_feature=YEAR given - aborting..." 1>&2; exit 1; }
  850.      else
  851.        { echo "configure: error: invalid YEAR $enableval to $gcal_feature given - aborting..." 1>&2; exit 1; }
  852.      fi
  853.    fi
  854. fi
  855.  
  856. # Check whether --enable-hls or --disable-hls was given.
  857. if test "${enable_hls+set}" = set; then
  858.   enableval="$enable_hls"
  859.   gcal_feature=hls
  860.    gcal_enable_hls=$enableval
  861.    if test "$gcal_enable_hls" = no; then
  862.      gcal_enabled="$gcal_enabled NO-$gcal_feature"
  863.    else
  864.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  865.    fi
  866. fi
  867.  
  868. # Check whether --enable-pager or --disable-pager was given.
  869. if test "${enable_pager+set}" = set; then
  870.   enableval="$enable_pager"
  871.   gcal_feature=pager
  872.    gcal_enable_pager=$enableval
  873.    if test "$gcal_enable_pager" = no; then
  874.      gcal_enabled="$gcal_enabled NO-$gcal_feature"
  875.    else
  876.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  877.    fi
  878. fi
  879.  
  880. # Check whether --enable-rc or --disable-rc was given.
  881. if test "${enable_rc+set}" = set; then
  882.   enableval="$enable_rc"
  883.   gcal_feature=rc
  884.    gcal_enable_rc=$enableval
  885.    if test "$gcal_enable_rc" = no; then
  886.      gcal_enabled="$gcal_enabled NO-$gcal_feature"
  887.    else
  888.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  889.    fi
  890. fi
  891.  
  892. # Check whether --enable-term or --disable-term was given.
  893. if test "${enable_term+set}" = set; then
  894.   enableval="$enable_term"
  895.   gcal_feature=term
  896.    gcal_enable_term=$enableval
  897.    if test "$gcal_enable_term" = no; then
  898.      gcal_enabled="$gcal_enabled NO-$gcal_feature"
  899.    else
  900.      gcal_illegal_defined="$gcal_illegal_defined $gcal_feature"
  901.    fi
  902. fi
  903.  
  904. gcal_feature=hls
  905. if test "$gcal_enable_hls" = yes; then
  906.   gcal_implicit="$gcal_implicit $gcal_feature"
  907.   cat >> confdefs.h <<\EOF
  908. #define USE_HLS 1
  909. EOF
  910.  
  911. fi
  912. gcal_feature=pager
  913. if test "$gcal_enable_pager" = yes; then
  914.   gcal_implicit="$gcal_implicit $gcal_feature"
  915.   cat >> confdefs.h <<\EOF
  916. #define USE_PAGER 1
  917. EOF
  918.  
  919. fi
  920. gcal_feature=rc
  921. if test "$gcal_enable_rc" = yes; then
  922.   gcal_implicit="$gcal_implicit $gcal_feature"
  923.   cat >> confdefs.h <<\EOF
  924. #define USE_RC 1
  925. EOF
  926.  
  927. fi
  928. gcal_feature=term
  929. if test "$gcal_enable_term" = yes; then
  930.   gcal_implicit="$gcal_implicit $gcal_feature"
  931. fi
  932. if test -n "$gcal_illegal_defined" || test -n "$gcal_multiple_defined"; then
  933.   echo "$ac_t""hmm... whats this??" 1>&6
  934.   echo "$ac_t""" 1>&6
  935.   if test -n "$gcal_illegal_defined"; then
  936.     echo "configure: warning: you have enabled/disabled features illegaly - see:" 1>&2
  937.     echo "configure: warning: " 1>&2
  938.     echo "configure: warning: $gcal_illegal_defined" 1>&2
  939.   else
  940.     echo "configure: warning: you have enabled features twice or more - see:" 1>&2
  941.     echo "configure: warning: " 1>&2
  942.     echo "configure: warning: $gcal_arglist" 1>&2
  943.   fi
  944.   echo "configure: warning: " 1>&2
  945.   echo "configure: warning: lets stop now so you can specify them correctly..." 1>&2
  946.   exit 1
  947. fi
  948. if test -n "$gcal_enabled"; then
  949.   echo "$ac_t""found: $gcal_enabled $gcal_implicit" 1>&6
  950. else
  951.   echo "$ac_t""explicitly found: none" 1>&6
  952.   # Extract the first word of "line", so it can be a program name with args.
  953. set dummy line; ac_word=$2
  954. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  955. if eval "test \"`echo '$''{'ac_cv_prog_LINE'+set}'`\" = set"; then
  956.   echo $ac_n "(cached) $ac_c" 1>&6
  957. else
  958.   if test -n "$LINE"; then
  959.   ac_cv_prog_LINE="$LINE" # Let the user override the test.
  960. else
  961.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  962.   for ac_dir in $PATH; do
  963.     test -z "$ac_dir" && ac_dir=.
  964.     if test -f $ac_dir/$ac_word; then
  965.       ac_cv_prog_LINE="line"
  966.       break
  967.     fi
  968.   done
  969.   IFS="$ac_save_ifs"
  970. fi
  971. fi
  972. LINE="$ac_cv_prog_LINE"
  973. if test -n "$LINE"; then
  974.   echo "$ac_t""$LINE" 1>&6
  975. else
  976.   echo "$ac_t""no" 1>&6
  977. fi
  978.  
  979.   echo "configure: warning: NO --enable / --disable arguments given explicitly!" 1>&2
  980.   echo "configure: warning: if this is OK then press RET to continue..." 1>&2
  981.   echo "configure: warning: otherwise break with C-c and rerun with arguments..." 1>&2
  982.   if test -n "$ac_cv_prog_LINE"; then
  983.     line >/dev/null
  984.   else
  985.     read gcal_kbd_input >/dev/null
  986.   fi
  987.   echo "$ac_t""ok --- configuring with: $gcal_implicit" 1>&6
  988. fi
  989.  
  990. echo
  991. echo "configuring for *** $gcal_lang *** users   =8^)"
  992. echo
  993. lang=$gcal_lang
  994.  
  995. echo "checking for programs" 1>&6
  996. # Extract the first word of "makeinfo", so it can be a program name with args.
  997. set dummy makeinfo; ac_word=$2
  998. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  999. if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  1000.   echo $ac_n "(cached) $ac_c" 1>&6
  1001. else
  1002.   if test -n "$MAKEINFO"; then
  1003.   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  1004. else
  1005.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1006.   for ac_dir in $PATH; do
  1007.     test -z "$ac_dir" && ac_dir=.
  1008.     if test -f $ac_dir/$ac_word; then
  1009.       ac_cv_prog_MAKEINFO="makeinfo"
  1010.       break
  1011.     fi
  1012.   done
  1013.   IFS="$ac_save_ifs"
  1014. fi
  1015. fi
  1016. MAKEINFO="$ac_cv_prog_MAKEINFO"
  1017. if test -n "$MAKEINFO"; then
  1018.   echo "$ac_t""$MAKEINFO" 1>&6
  1019. else
  1020.   echo "$ac_t""no" 1>&6
  1021. fi
  1022.  
  1023. if test -z "$ac_cv_prog_MAKEINFO"; then
  1024.   echo "$ac_t""" 1>&6
  1025.   echo "configure: warning: no automatic recreation of text documentation/info files!" 1>&2
  1026.   echo "configure: warning: Makefile targets *txt* and *info* will never be executed." 1>&2
  1027.   echo "$ac_t""" 1>&6
  1028. else
  1029.   echo $ac_n "checking for makeinfo version""... $ac_c" 1>&6
  1030.     if eval "test \"`echo '$''{'gcal_cv_prog_MAKEINFO_VERSION'+set}'`\" = set"; then
  1031.   echo $ac_n "(cached) $ac_c" 1>&6
  1032. else
  1033.   gcal_cv_prog_MAKEINFO_VERSION=`makeinfo --version 2>&1 | sed -e 's/[^0-9]//g'`
  1034. fi
  1035.  
  1036.     gcal_makeinfo_error=no
  1037.   if test -n "$gcal_cv_prog_MAKEINFO_VERSION"; then
  1038.     echo "$ac_t""$gcal_cv_prog_MAKEINFO_VERSION" 1>&6
  1039.     if test "$gcal_cv_prog_MAKEINFO_VERSION" -lt "120"; then
  1040.       gcal_makeinfo_error=yes
  1041.     fi
  1042.   else
  1043.     gcal_makeinfo_error=yes
  1044.     echo "$ac_t""unknown" 1>&6
  1045.   fi
  1046.   if test "$gcal_makeinfo_error" = yes; then
  1047.     gcal_cv_prog_MAKEINFO_VERSION=
  1048.     echo "$ac_t""" 1>&6
  1049.     echo "configure: warning: no automatic recreation of text documentation files!" 1>&2
  1050.     echo "configure: warning: the makeinfo program is out of date." 1>&2
  1051.     echo "configure: warning: Makefile target *txt* will never be executed." 1>&2
  1052.     echo "$ac_t""" 1>&6
  1053.   fi
  1054.   MAKEINFOVERSION=$gcal_cv_prog_MAKEINFO_VERSION
  1055.   fi
  1056. # Extract the first word of "texi2dvi", so it can be a program name with args.
  1057. set dummy texi2dvi; ac_word=$2
  1058. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1059. if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
  1060.   echo $ac_n "(cached) $ac_c" 1>&6
  1061. else
  1062.   if test -n "$TEXI2DVI"; then
  1063.   ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
  1064. else
  1065.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1066.   for ac_dir in $PATH; do
  1067.     test -z "$ac_dir" && ac_dir=.
  1068.     if test -f $ac_dir/$ac_word; then
  1069.       ac_cv_prog_TEXI2DVI="texi2dvi"
  1070.       break
  1071.     fi
  1072.   done
  1073.   IFS="$ac_save_ifs"
  1074. fi
  1075. fi
  1076. TEXI2DVI="$ac_cv_prog_TEXI2DVI"
  1077. if test -n "$TEXI2DVI"; then
  1078.   echo "$ac_t""$TEXI2DVI" 1>&6
  1079. else
  1080.   echo "$ac_t""no" 1>&6
  1081. fi
  1082.  
  1083. if test -z "$ac_cv_prog_TEXI2DVI"; then
  1084.   echo "$ac_t""" 1>&6
  1085.   echo "configure: warning: no automatic creation of dvi files!" 1>&2
  1086.   echo "configure: warning: Makefile target *dvi* will never be executed." 1>&2
  1087.   echo "$ac_t""" 1>&6
  1088. fi
  1089. for ac_prog in gshar shar
  1090. do
  1091. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1092. set dummy $ac_prog; ac_word=$2
  1093. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1094. if eval "test \"`echo '$''{'ac_cv_prog_SHAR'+set}'`\" = set"; then
  1095.   echo $ac_n "(cached) $ac_c" 1>&6
  1096. else
  1097.   if test -n "$SHAR"; then
  1098.   ac_cv_prog_SHAR="$SHAR" # Let the user override the test.
  1099. else
  1100.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1101.   for ac_dir in $PATH; do
  1102.     test -z "$ac_dir" && ac_dir=.
  1103.     if test -f $ac_dir/$ac_word; then
  1104.       ac_cv_prog_SHAR="$ac_prog"
  1105.       break
  1106.     fi
  1107.   done
  1108.   IFS="$ac_save_ifs"
  1109. fi
  1110. fi
  1111. SHAR="$ac_cv_prog_SHAR"
  1112. if test -n "$SHAR"; then
  1113.   echo "$ac_t""$SHAR" 1>&6
  1114. else
  1115.   echo "$ac_t""no" 1>&6
  1116. fi
  1117.  
  1118. test -n "$SHAR" && break
  1119. done
  1120.  
  1121. if test -z "$ac_cv_prog_SHAR"; then
  1122.   echo "$ac_t""" 1>&6
  1123.   echo "configure: warning: no automatic creation of shared distribution!" 1>&2
  1124.   echo "configure: warning: Makefile target *distshar* will never be executed." 1>&2
  1125.   echo "$ac_t""" 1>&6
  1126. fi
  1127. # Extract the first word of "zip", so it can be a program name with args.
  1128. set dummy zip; ac_word=$2
  1129. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1130. if eval "test \"`echo '$''{'ac_cv_prog_ZIP'+set}'`\" = set"; then
  1131.   echo $ac_n "(cached) $ac_c" 1>&6
  1132. else
  1133.   if test -n "$ZIP"; then
  1134.   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
  1135. else
  1136.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1137.   for ac_dir in $PATH; do
  1138.     test -z "$ac_dir" && ac_dir=.
  1139.     if test -f $ac_dir/$ac_word; then
  1140.       ac_cv_prog_ZIP="zip"
  1141.       break
  1142.     fi
  1143.   done
  1144.   IFS="$ac_save_ifs"
  1145. fi
  1146. fi
  1147. ZIP="$ac_cv_prog_ZIP"
  1148. if test -n "$ZIP"; then
  1149.   echo "$ac_t""$ZIP" 1>&6
  1150. else
  1151.   echo "$ac_t""no" 1>&6
  1152. fi
  1153.  
  1154. if test -z "$ac_cv_prog_ZIP"; then
  1155.   echo "$ac_t""" 1>&6
  1156.   echo "configure: warning: no automatic creation of zipped distribution!" 1>&2
  1157.   echo "configure: warning: Makefile target *distzip* will never be executed." 1>&2
  1158.   echo "$ac_t""" 1>&6
  1159. fi
  1160. # Extract the first word of "zoo", so it can be a program name with args.
  1161. set dummy zoo; ac_word=$2
  1162. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1163. if eval "test \"`echo '$''{'ac_cv_prog_ZOO'+set}'`\" = set"; then
  1164.   echo $ac_n "(cached) $ac_c" 1>&6
  1165. else
  1166.   if test -n "$ZOO"; then
  1167.   ac_cv_prog_ZOO="$ZOO" # Let the user override the test.
  1168. else
  1169.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1170.   for ac_dir in $PATH; do
  1171.     test -z "$ac_dir" && ac_dir=.
  1172.     if test -f $ac_dir/$ac_word; then
  1173.       ac_cv_prog_ZOO="zoo"
  1174.       break
  1175.     fi
  1176.   done
  1177.   IFS="$ac_save_ifs"
  1178. fi
  1179. fi
  1180. ZOO="$ac_cv_prog_ZOO"
  1181. if test -n "$ZOO"; then
  1182.   echo "$ac_t""$ZOO" 1>&6
  1183. else
  1184.   echo "$ac_t""no" 1>&6
  1185. fi
  1186.  
  1187. if test -z "$ac_cv_prog_ZOO"; then
  1188.   echo "$ac_t""" 1>&6
  1189.   echo "configure: warning: no automatic creation of zooed distribution!" 1>&2
  1190.   echo "configure: warning: Makefile target *distzoo* will never be executed." 1>&2
  1191.   echo "$ac_t""" 1>&6
  1192. else
  1193.   # Extract the first word of "find", so it can be a program name with args.
  1194. set dummy find; ac_word=$2
  1195. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1196. if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then
  1197.   echo $ac_n "(cached) $ac_c" 1>&6
  1198. else
  1199.   if test -n "$FIND"; then
  1200.   ac_cv_prog_FIND="$FIND" # Let the user override the test.
  1201. else
  1202.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1203.   for ac_dir in $PATH; do
  1204.     test -z "$ac_dir" && ac_dir=.
  1205.     if test -f $ac_dir/$ac_word; then
  1206.       ac_cv_prog_FIND="find"
  1207.       break
  1208.     fi
  1209.   done
  1210.   IFS="$ac_save_ifs"
  1211. fi
  1212. fi
  1213. FIND="$ac_cv_prog_FIND"
  1214. if test -n "$FIND"; then
  1215.   echo "$ac_t""$FIND" 1>&6
  1216. else
  1217.   echo "$ac_t""no" 1>&6
  1218. fi
  1219.  
  1220.   if test -z "$ac_cv_prog_FIND"; then
  1221.     echo "$ac_t""" 1>&6
  1222.     echo "configure: warning: no automatic creation of zooed distribution!" 1>&2
  1223.     echo "configure: warning: Makefile target *distzoo* will never be executed." 1>&2
  1224.     echo "$ac_t""" 1>&6
  1225.   fi
  1226. fi
  1227. for ac_prog in lha lharc
  1228. do
  1229. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1230. set dummy $ac_prog; ac_word=$2
  1231. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1232. if eval "test \"`echo '$''{'ac_cv_prog_LHA'+set}'`\" = set"; then
  1233.   echo $ac_n "(cached) $ac_c" 1>&6
  1234. else
  1235.   if test -n "$LHA"; then
  1236.   ac_cv_prog_LHA="$LHA" # Let the user override the test.
  1237. else
  1238.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1239.   for ac_dir in $PATH; do
  1240.     test -z "$ac_dir" && ac_dir=.
  1241.     if test -f $ac_dir/$ac_word; then
  1242.       ac_cv_prog_LHA="$ac_prog"
  1243.       break
  1244.     fi
  1245.   done
  1246.   IFS="$ac_save_ifs"
  1247. fi
  1248. fi
  1249. LHA="$ac_cv_prog_LHA"
  1250. if test -n "$LHA"; then
  1251.   echo "$ac_t""$LHA" 1>&6
  1252. else
  1253.   echo "$ac_t""no" 1>&6
  1254. fi
  1255.  
  1256. test -n "$LHA" && break
  1257. done
  1258.  
  1259. if test -z "$ac_cv_prog_LHA"; then
  1260.   echo "$ac_t""" 1>&6
  1261.   echo "configure: warning: no automatic creation of lhaed distribution!" 1>&2
  1262.   echo "configure: warning: Makefile target *distlha* will never be executed." 1>&2
  1263.   echo "$ac_t""" 1>&6
  1264. fi
  1265. for ac_prog in gtar tar
  1266. do
  1267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1268. set dummy $ac_prog; ac_word=$2
  1269. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1270. if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
  1271.   echo $ac_n "(cached) $ac_c" 1>&6
  1272. else
  1273.   if test -n "$TAR"; then
  1274.   ac_cv_prog_TAR="$TAR" # Let the user override the test.
  1275. else
  1276.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1277.   for ac_dir in $PATH; do
  1278.     test -z "$ac_dir" && ac_dir=.
  1279.     if test -f $ac_dir/$ac_word; then
  1280.       ac_cv_prog_TAR="$ac_prog"
  1281.       break
  1282.     fi
  1283.   done
  1284.   IFS="$ac_save_ifs"
  1285. fi
  1286. fi
  1287. TAR="$ac_cv_prog_TAR"
  1288. if test -n "$TAR"; then
  1289.   echo "$ac_t""$TAR" 1>&6
  1290. else
  1291.   echo "$ac_t""no" 1>&6
  1292. fi
  1293.  
  1294. test -n "$TAR" && break
  1295. done
  1296.  
  1297. if test -z "$ac_cv_prog_TAR"; then
  1298.   echo "$ac_t""" 1>&6
  1299.   echo "configure: warning: no automatic creation of gzipped/compressed distribution!" 1>&2
  1300.   echo "configure: warning: Makefile target *dist* will never be executed." 1>&2
  1301.   echo "$ac_t""" 1>&6
  1302. else
  1303.   # Extract the first word of "gzip", so it can be a program name with args.
  1304. set dummy gzip; ac_word=$2
  1305. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1306. if eval "test \"`echo '$''{'ac_cv_prog_GZIP'+set}'`\" = set"; then
  1307.   echo $ac_n "(cached) $ac_c" 1>&6
  1308. else
  1309.   if test -n "$GZIP"; then
  1310.   ac_cv_prog_GZIP="$GZIP" # Let the user override the test.
  1311. else
  1312.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1313.   for ac_dir in $PATH; do
  1314.     test -z "$ac_dir" && ac_dir=.
  1315.     if test -f $ac_dir/$ac_word; then
  1316.       ac_cv_prog_GZIP="gzip"
  1317.       break
  1318.     fi
  1319.   done
  1320.   IFS="$ac_save_ifs"
  1321. fi
  1322. fi
  1323. GZIP="$ac_cv_prog_GZIP"
  1324. if test -n "$GZIP"; then
  1325.   echo "$ac_t""$GZIP" 1>&6
  1326. else
  1327.   echo "$ac_t""no" 1>&6
  1328. fi
  1329.  
  1330.   if test -z "$ac_cv_prog_GZIP"; then
  1331.     # Extract the first word of "compress", so it can be a program name with args.
  1332. set dummy compress; ac_word=$2
  1333. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1334. if eval "test \"`echo '$''{'ac_cv_prog_COMPRESS'+set}'`\" = set"; then
  1335.   echo $ac_n "(cached) $ac_c" 1>&6
  1336. else
  1337.   if test -n "$COMPRESS"; then
  1338.   ac_cv_prog_COMPRESS="$COMPRESS" # Let the user override the test.
  1339. else
  1340.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1341.   for ac_dir in $PATH; do
  1342.     test -z "$ac_dir" && ac_dir=.
  1343.     if test -f $ac_dir/$ac_word; then
  1344.       ac_cv_prog_COMPRESS="compress"
  1345.       break
  1346.     fi
  1347.   done
  1348.   IFS="$ac_save_ifs"
  1349. fi
  1350. fi
  1351. COMPRESS="$ac_cv_prog_COMPRESS"
  1352. if test -n "$COMPRESS"; then
  1353.   echo "$ac_t""$COMPRESS" 1>&6
  1354. else
  1355.   echo "$ac_t""no" 1>&6
  1356. fi
  1357.  
  1358.   fi
  1359.   if test -z "$ac_cv_prog_GZIP" && test -z "$ac_cv_prog_COMPRESS"; then
  1360.     echo "$ac_t""" 1>&6
  1361.     echo "configure: warning: no automatic creation of gzipped/compressed distribution!" 1>&2
  1362.     echo "configure: warning: Makefile target *dist* will never be executed." 1>&2
  1363.     echo "$ac_t""" 1>&6
  1364.   fi
  1365. fi
  1366. # Extract the first word of "perl", so it can be a program name with args.
  1367. set dummy perl; ac_word=$2
  1368. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1369. if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
  1370.   echo $ac_n "(cached) $ac_c" 1>&6
  1371. else
  1372.   if test -n "$PERL"; then
  1373.   ac_cv_prog_PERL="$PERL" # Let the user override the test.
  1374. else
  1375.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1376.   for ac_dir in $PATH; do
  1377.     test -z "$ac_dir" && ac_dir=.
  1378.     if test -f $ac_dir/$ac_word; then
  1379.       ac_cv_prog_PERL="perl"
  1380.       break
  1381.     fi
  1382.   done
  1383.   IFS="$ac_save_ifs"
  1384. fi
  1385. fi
  1386. PERL="$ac_cv_prog_PERL"
  1387. if test -n "$PERL"; then
  1388.   echo "$ac_t""$PERL" 1>&6
  1389. else
  1390.   echo "$ac_t""no" 1>&6
  1391. fi
  1392.  
  1393. if test -z "$ac_cv_prog_PERL"; then
  1394.   for ac_prog in mawk gawk nawk awk
  1395. do
  1396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1397. set dummy $ac_prog; ac_word=$2
  1398. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1399. if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
  1400.   echo $ac_n "(cached) $ac_c" 1>&6
  1401. else
  1402.   if test -n "$AWK"; then
  1403.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1404. else
  1405.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1406.   for ac_dir in $PATH; do
  1407.     test -z "$ac_dir" && ac_dir=.
  1408.     if test -f $ac_dir/$ac_word; then
  1409.       ac_cv_prog_AWK="$ac_prog"
  1410.       break
  1411.     fi
  1412.   done
  1413.   IFS="$ac_save_ifs"
  1414. fi
  1415. fi
  1416. AWK="$ac_cv_prog_AWK"
  1417. if test -n "$AWK"; then
  1418.   echo "$ac_t""$AWK" 1>&6
  1419. else
  1420.   echo "$ac_t""no" 1>&6
  1421. fi
  1422.  
  1423. test -n "$AWK" && break
  1424. done
  1425.  
  1426.   if test -z "$ac_cv_prog_AWK"; then
  1427.     echo "$ac_t""" 1>&6
  1428.     echo "configure: warning: no automatic installation of dates files!" 1>&2
  1429.     echo "configure: warning: Makefile target *installdates* will never be executed." 1>&2
  1430.     echo "$ac_t""" 1>&6
  1431.   fi
  1432. fi
  1433. # Extract the first word of "less", so it can be a program name with args.
  1434. set dummy less; ac_word=$2
  1435. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1436. if eval "test \"`echo '$''{'ac_cv_prog_PAGER1'+set}'`\" = set"; then
  1437.   echo $ac_n "(cached) $ac_c" 1>&6
  1438. else
  1439.   if test -n "$PAGER1"; then
  1440.   ac_cv_prog_PAGER1="$PAGER1" # Let the user override the test.
  1441. else
  1442.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1443.   for ac_dir in $PATH; do
  1444.     test -z "$ac_dir" && ac_dir=.
  1445.     if test -f $ac_dir/$ac_word; then
  1446.       ac_cv_prog_PAGER1="less"
  1447.       break
  1448.     fi
  1449.   done
  1450.   IFS="$ac_save_ifs"
  1451. fi
  1452. fi
  1453. PAGER1="$ac_cv_prog_PAGER1"
  1454. if test -n "$PAGER1"; then
  1455.   echo "$ac_t""$PAGER1" 1>&6
  1456. else
  1457.   echo "$ac_t""no" 1>&6
  1458. fi
  1459.  
  1460. # Extract the first word of "more", so it can be a program name with args.
  1461. set dummy more; ac_word=$2
  1462. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1463. if eval "test \"`echo '$''{'ac_cv_prog_PAGER2'+set}'`\" = set"; then
  1464.   echo $ac_n "(cached) $ac_c" 1>&6
  1465. else
  1466.   if test -n "$PAGER2"; then
  1467.   ac_cv_prog_PAGER2="$PAGER2" # Let the user override the test.
  1468. else
  1469.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1470.   for ac_dir in $PATH; do
  1471.     test -z "$ac_dir" && ac_dir=.
  1472.     if test -f $ac_dir/$ac_word; then
  1473.       ac_cv_prog_PAGER2="more"
  1474.       break
  1475.     fi
  1476.   done
  1477.   IFS="$ac_save_ifs"
  1478. fi
  1479. fi
  1480. PAGER2="$ac_cv_prog_PAGER2"
  1481. if test -n "$PAGER2"; then
  1482.   echo "$ac_t""$PAGER2" 1>&6
  1483. else
  1484.   echo "$ac_t""no" 1>&6
  1485. fi
  1486.  
  1487. cat >> confdefs.h <<EOF
  1488. #define PAGER_PROG "$PAGER1"
  1489. EOF
  1490.  
  1491. cat >> confdefs.h <<EOF
  1492. #define PAGER2_PROG "$PAGER2"
  1493. EOF
  1494.  
  1495. ac_aux_dir=
  1496. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1497.   if test -f $ac_dir/install-sh; then
  1498.     ac_aux_dir=$ac_dir
  1499.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1500.     break
  1501.   elif test -f $ac_dir/install.sh; then
  1502.     ac_aux_dir=$ac_dir
  1503.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1504.     break
  1505.   fi
  1506. done
  1507. if test -z "$ac_aux_dir"; then
  1508.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1509. fi
  1510. ac_config_guess=$ac_aux_dir/config.guess
  1511. ac_config_sub=$ac_aux_dir/config.sub
  1512. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1513.  
  1514. # Find a good install program.  We prefer a C program (faster),
  1515. # so one script is as good as another.  But avoid the broken or
  1516. # incompatible versions:
  1517. # SysV /etc/install, /usr/sbin/install
  1518. # SunOS /usr/etc/install
  1519. # IRIX /sbin/install
  1520. # AIX /bin/install
  1521. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1522. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1523. # ./install, which can be erroneously created by make from ./install.sh.
  1524. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1525. if test -z "$INSTALL"; then
  1526. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1527.   echo $ac_n "(cached) $ac_c" 1>&6
  1528. else
  1529.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1530.   for ac_dir in $PATH; do
  1531.     # Account for people who put trailing slashes in PATH elements.
  1532.     case "$ac_dir/" in
  1533.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1534.     *)
  1535.       # OSF1 and SCO ODT 3.0 have their own names for install.
  1536.       for ac_prog in ginstall installbsd scoinst install; do
  1537.         if test -f $ac_dir/$ac_prog; then
  1538.       if test $ac_prog = install &&
  1539.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1540.         # AIX install.  It has an incompatible calling convention.
  1541.         # OSF/1 installbsd also uses dspmsg, but is usable.
  1542.         :
  1543.       else
  1544.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  1545.         break 2
  1546.       fi
  1547.     fi
  1548.       done
  1549.       ;;
  1550.     esac
  1551.   done
  1552.   IFS="$ac_save_ifs"
  1553.  
  1554. fi
  1555.   if test "${ac_cv_path_install+set}" = set; then
  1556.     INSTALL="$ac_cv_path_install"
  1557.   else
  1558.     # As a last resort, use the slow shell script.  We don't cache a
  1559.     # path for INSTALL within a source directory, because that will
  1560.     # break other packages using the cache if that directory is
  1561.     # removed, or if the path is relative.
  1562.     INSTALL="$ac_install_sh"
  1563.   fi
  1564. fi
  1565. echo "$ac_t""$INSTALL" 1>&6
  1566.  
  1567. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1568. # It thinks the first close brace ends the variable substitution.
  1569. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1570.  
  1571. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1572.  
  1573.  
  1574. echo "$ac_t""" 1>&6
  1575. echo "checking for C compiler" 1>&6
  1576. # Extract the first word of "gcc", so it can be a program name with args.
  1577. set dummy gcc; ac_word=$2
  1578. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1579. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1580.   echo $ac_n "(cached) $ac_c" 1>&6
  1581. else
  1582.   if test -n "$CC"; then
  1583.   ac_cv_prog_CC="$CC" # Let the user override the test.
  1584. else
  1585.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1586.   for ac_dir in $PATH; do
  1587.     test -z "$ac_dir" && ac_dir=.
  1588.     if test -f $ac_dir/$ac_word; then
  1589.       ac_cv_prog_CC="gcc"
  1590.       break
  1591.     fi
  1592.   done
  1593.   IFS="$ac_save_ifs"
  1594.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  1595. fi
  1596. fi
  1597. CC="$ac_cv_prog_CC"
  1598. if test -n "$CC"; then
  1599.   echo "$ac_t""$CC" 1>&6
  1600. else
  1601.   echo "$ac_t""no" 1>&6
  1602. fi
  1603.  
  1604.  
  1605. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1606. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1607.   echo $ac_n "(cached) $ac_c" 1>&6
  1608. else
  1609.   cat > conftest.c <<EOF
  1610. #ifdef __GNUC__
  1611.   yes;
  1612. #endif
  1613. EOF
  1614. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  1615.   ac_cv_prog_gcc=yes
  1616. else
  1617.   ac_cv_prog_gcc=no
  1618. fi
  1619. fi
  1620.  
  1621. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1622. if test $ac_cv_prog_gcc = yes; then
  1623.   GCC=yes
  1624.   if test "${CFLAGS+set}" != set; then
  1625.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1626. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  1627.   echo $ac_n "(cached) $ac_c" 1>&6
  1628. else
  1629.   echo 'void f(){}' > conftest.c
  1630. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1631.   ac_cv_prog_gcc_g=yes
  1632. else
  1633.   ac_cv_prog_gcc_g=no
  1634. fi
  1635. rm -f conftest*
  1636.  
  1637. fi
  1638.  
  1639. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  1640.     if test $ac_cv_prog_gcc_g = yes; then
  1641.       CFLAGS="-g -O"
  1642.     else
  1643.       CFLAGS="-O"
  1644.     fi
  1645.   fi
  1646. else
  1647.   GCC=
  1648.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  1649. fi
  1650.  
  1651. if test -z "$ac_cv_prog_CC"; then
  1652.   echo "$ac_t""hmm... whats this??" 1>&6
  1653.   echo "$ac_t""" 1>&6
  1654.   { echo "configure: error: no C compiler found - aborting..." 1>&2; exit 1; }
  1655. fi
  1656. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1657. # On Suns, sometimes $CPP names a directory.
  1658. if test -n "$CPP" && test -d "$CPP"; then
  1659.   CPP=
  1660. fi
  1661. if test -z "$CPP"; then
  1662. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1663.   echo $ac_n "(cached) $ac_c" 1>&6
  1664. else
  1665.     # This must be in double quotes, not single quotes, because CPP may get
  1666.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1667.   CPP="${CC-cc} -E"
  1668.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1669.   # not just through cpp.
  1670.   cat > conftest.$ac_ext <<EOF
  1671. #line 1672 "configure"
  1672. #include "confdefs.h"
  1673. #include <assert.h>
  1674. Syntax Error
  1675. EOF
  1676. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1677. ac_err=`grep -v '^ *+' conftest.out`
  1678. if test -z "$ac_err"; then
  1679.   :
  1680. else
  1681.   echo "$ac_err" >&5
  1682.   rm -rf conftest*
  1683.   CPP="${CC-cc} -E -traditional-cpp"
  1684.   cat > conftest.$ac_ext <<EOF
  1685. #line 1686 "configure"
  1686. #include "confdefs.h"
  1687. #include <assert.h>
  1688. Syntax Error
  1689. EOF
  1690. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1691. ac_err=`grep -v '^ *+' conftest.out`
  1692. if test -z "$ac_err"; then
  1693.   :
  1694. else
  1695.   echo "$ac_err" >&5
  1696.   rm -rf conftest*
  1697.   CPP=/lib/cpp
  1698. fi
  1699. rm -f conftest*
  1700. fi
  1701. rm -f conftest*
  1702.   ac_cv_prog_CPP="$CPP"
  1703. fi
  1704.   CPP="$ac_cv_prog_CPP"
  1705. else
  1706.   ac_cv_prog_CPP="$CPP"
  1707. fi
  1708. echo "$ac_t""$CPP" 1>&6
  1709.  
  1710. if test $ac_cv_prog_gcc = yes; then
  1711.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1712. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1713.   echo $ac_n "(cached) $ac_c" 1>&6
  1714. else
  1715.     ac_pattern="Autoconf.*'x'"
  1716.   cat > conftest.$ac_ext <<EOF
  1717. #line 1718 "configure"
  1718. #include "confdefs.h"
  1719. #include <sgtty.h>
  1720. Autoconf TIOCGETP
  1721. EOF
  1722. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1723.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1724.   rm -rf conftest*
  1725.   ac_cv_prog_gcc_traditional=yes
  1726. else
  1727.   rm -rf conftest*
  1728.   ac_cv_prog_gcc_traditional=no
  1729. fi
  1730. rm -f conftest*
  1731.  
  1732.  
  1733.   if test $ac_cv_prog_gcc_traditional = no; then
  1734.     cat > conftest.$ac_ext <<EOF
  1735. #line 1736 "configure"
  1736. #include "confdefs.h"
  1737. #include <termio.h>
  1738. Autoconf TCGETA
  1739. EOF
  1740. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1741.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1742.   rm -rf conftest*
  1743.   ac_cv_prog_gcc_traditional=yes
  1744. fi
  1745. rm -f conftest*
  1746.  
  1747.   fi
  1748. fi
  1749.  
  1750. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1751.   if test $ac_cv_prog_gcc_traditional = yes; then
  1752.     CC="$CC -traditional"
  1753.   fi
  1754. fi
  1755.  
  1756.  
  1757. echo "$ac_t""" 1>&6
  1758. echo "checking for operating system variants" 1>&6
  1759. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1760. cat > conftest.$ac_ext <<EOF
  1761. #line 1762 "configure"
  1762. #include "confdefs.h"
  1763. #ifdef _AIX
  1764.   yes
  1765. #endif
  1766.  
  1767. EOF
  1768. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1769.   egrep "yes" >/dev/null 2>&1; then
  1770.   rm -rf conftest*
  1771.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1772. #define _ALL_SOURCE 1
  1773. EOF
  1774.  
  1775. else
  1776.   rm -rf conftest*
  1777.   echo "$ac_t""no" 1>&6
  1778. fi
  1779. rm -f conftest*
  1780.  
  1781.  
  1782. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1783. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1784. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1785.   echo $ac_n "(cached) $ac_c" 1>&6
  1786. else
  1787.   cat > conftest.$ac_ext <<EOF
  1788. #line 1789 "configure"
  1789. #include "confdefs.h"
  1790. #include <minix/config.h>
  1791. EOF
  1792. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1793. ac_err=`grep -v '^ *+' conftest.out`
  1794. if test -z "$ac_err"; then
  1795.   rm -rf conftest*
  1796.   eval "ac_cv_header_$ac_safe=yes"
  1797. else
  1798.   echo "$ac_err" >&5
  1799.   rm -rf conftest*
  1800.   eval "ac_cv_header_$ac_safe=no"
  1801. fi
  1802. rm -f conftest*
  1803. fi
  1804. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1805.   echo "$ac_t""yes" 1>&6
  1806.   MINIX=yes
  1807. else
  1808.   echo "$ac_t""no" 1>&6
  1809. MINIX=
  1810. fi
  1811.  
  1812. if test "$MINIX" = yes; then
  1813.   cat >> confdefs.h <<\EOF
  1814. #define _POSIX_SOURCE 1
  1815. EOF
  1816.  
  1817.   cat >> confdefs.h <<\EOF
  1818. #define _POSIX_1_SOURCE 2
  1819. EOF
  1820.  
  1821.   cat >> confdefs.h <<\EOF
  1822. #define _MINIX 1
  1823. EOF
  1824.  
  1825. fi
  1826.  
  1827. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1828. if test -d /etc/conf/kconfig.d &&
  1829.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1830. then
  1831.   echo "$ac_t""yes" 1>&6
  1832.   ISC=yes # If later tests want to check for ISC.
  1833.   cat >> confdefs.h <<\EOF
  1834. #define _POSIX_SOURCE 1
  1835. EOF
  1836.  
  1837.   if test "$GCC" = yes; then
  1838.     CC="$CC -posix"
  1839.   else
  1840.     CC="$CC -Xp"
  1841.   fi
  1842. else
  1843.   echo "$ac_t""no" 1>&6
  1844.   ISC=
  1845. fi
  1846.  
  1847.  
  1848. echo "$ac_t""" 1>&6
  1849. echo "checking for libraries" 1>&6
  1850. if test "$gcal_enable_term" = yes; then
  1851.   gcal_termcap_ok=no
  1852.   gcal_termlib_ok=no
  1853.   TERMLIBS=
  1854.   echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  1855. ac_lib_var=`echo termcap | tr '.-/+' '___p'`
  1856. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1857.   echo $ac_n "(cached) $ac_c" 1>&6
  1858. else
  1859.   ac_save_LIBS="$LIBS"
  1860. LIBS="-ltermcap  $LIBS"
  1861. cat > conftest.$ac_ext <<EOF
  1862. #line 1863 "configure"
  1863. #include "confdefs.h"
  1864.  
  1865. int main() { return 0; }
  1866. int t() {
  1867. tgetent()
  1868. ; return 0; }
  1869. EOF
  1870. if eval $ac_link; then
  1871.   rm -rf conftest*
  1872.   eval "ac_cv_lib_$ac_lib_var=yes"
  1873. else
  1874.   rm -rf conftest*
  1875.   eval "ac_cv_lib_$ac_lib_var=no"
  1876. fi
  1877. rm -f conftest*
  1878. LIBS="$ac_save_LIBS"
  1879.  
  1880. fi
  1881. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1882.   echo "$ac_t""yes" 1>&6
  1883.   cat >> confdefs.h <<\EOF
  1884. #define HAVE_LIBTERMCAP 1
  1885. EOF
  1886.  
  1887.      TERMLIBS="-ltermcap"
  1888. else
  1889.   echo "$ac_t""no" 1>&6
  1890. fi
  1891.  
  1892.   echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  1893. ac_lib_var=`echo termlib | tr '.-/+' '___p'`
  1894. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1895.   echo $ac_n "(cached) $ac_c" 1>&6
  1896. else
  1897.   ac_save_LIBS="$LIBS"
  1898. LIBS="-ltermlib  $LIBS"
  1899. cat > conftest.$ac_ext <<EOF
  1900. #line 1901 "configure"
  1901. #include "confdefs.h"
  1902.  
  1903. int main() { return 0; }
  1904. int t() {
  1905. tgetent()
  1906. ; return 0; }
  1907. EOF
  1908. if eval $ac_link; then
  1909.   rm -rf conftest*
  1910.   eval "ac_cv_lib_$ac_lib_var=yes"
  1911. else
  1912.   rm -rf conftest*
  1913.   eval "ac_cv_lib_$ac_lib_var=no"
  1914. fi
  1915. rm -f conftest*
  1916. LIBS="$ac_save_LIBS"
  1917.  
  1918. fi
  1919. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1920.   echo "$ac_t""yes" 1>&6
  1921.   have_termlib=yes
  1922. else
  1923.   echo "$ac_t""no" 1>&6
  1924. have_termlib=no
  1925. fi
  1926.  
  1927.           echo $ac_n "checking for working terminal libraries""... $ac_c" 1>&6
  1928.   SAVE_LIBS=$LIBS
  1929.   LIBS="$LIBS $TERMLIBS"
  1930.   cat > conftest.$ac_ext <<EOF
  1931. #line 1932 "configure"
  1932. #include "confdefs.h"
  1933.  
  1934. int main() { return 0; }
  1935. int t() {
  1936. tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);
  1937. ; return 0; }
  1938. EOF
  1939. if eval $ac_link; then
  1940.   rm -rf conftest*
  1941.   gcal_termcap_ok=yes
  1942. fi
  1943. rm -f conftest*
  1944.  
  1945.   if test "$gcal_termcap_ok" = yes; then
  1946.     echo "$ac_t""using $TERMLIBS" 1>&6
  1947.   else
  1948.     TERMLIBS="-ltermlib"
  1949.     LIBS="$SAVE_LIBS"
  1950.     LIBS="$LIBS $TERMLIBS"
  1951.     if test "$have_termlib" = yes; then
  1952.       cat > conftest.$ac_ext <<EOF
  1953. #line 1954 "configure"
  1954. #include "confdefs.h"
  1955.  
  1956. int main() { return 0; }
  1957. int t() {
  1958. tgetent(0); tgetflag(0); tgetnum(0); tgetstr(0);
  1959. ; return 0; }
  1960. EOF
  1961. if eval $ac_link; then
  1962.   rm -rf conftest*
  1963.   gcal_termlib_ok=yes
  1964. fi
  1965. rm -f conftest*
  1966.  
  1967.       if test "$gcal_termlib_ok" = yes; then
  1968.         cat >> confdefs.h <<\EOF
  1969. #define HAVE_LIBTERMLIB 1
  1970. EOF
  1971.  
  1972.         echo "$ac_t""using $TERMLIBS" 1>&6
  1973.       fi
  1974.     fi
  1975.   fi
  1976.   if test "$gcal_termcap_ok" = no && test "$gcal_termlib_ok" = no; then
  1977.     LIBS="$SAVE_LIBS"
  1978.     echo "$ac_t""hmm... whats this??" 1>&6
  1979.     echo "$ac_t""" 1>&6
  1980.     echo "configure: warning: no terminal libraries available" 1>&2
  1981.     echo "configure: warning: " 1>&2
  1982.     echo "configure: warning: this means $gcal_distname will use its defaults now" 1>&2
  1983.     echo "configure: warning: and is unable to support several terminal types!" 1>&2
  1984.     echo "configure: warning: note: $gcal_distname would work more flexible if" 1>&2
  1985.     echo "configure: warning: libtermcap.a and/or libtermlib.a are installed." 1>&2
  1986.     echo "$ac_t""" 1>&6
  1987.   fi
  1988. fi #Using termlibs
  1989.  
  1990. echo "$ac_t""" 1>&6
  1991. echo "checking for header files" 1>&6
  1992. # If we cannot run a trivial program, we must be cross compiling.
  1993. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1994. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1995.   echo $ac_n "(cached) $ac_c" 1>&6
  1996. else
  1997.   if test "$cross_compiling" = yes; then
  1998.   ac_cv_c_cross=yes
  1999. else
  2000. cat > conftest.$ac_ext <<EOF
  2001. #line 2002 "configure"
  2002. #include "confdefs.h"
  2003. main(){return(0);}
  2004. EOF
  2005. eval $ac_link
  2006. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2007.   ac_cv_c_cross=no
  2008. else
  2009.   ac_cv_c_cross=yes
  2010. fi
  2011. fi
  2012. rm -fr conftest*
  2013. fi
  2014.  
  2015. echo "$ac_t""$ac_cv_c_cross" 1>&6
  2016. cross_compiling=$ac_cv_c_cross
  2017.  
  2018. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2019. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2020.   echo $ac_n "(cached) $ac_c" 1>&6
  2021. else
  2022.   cat > conftest.$ac_ext <<EOF
  2023. #line 2024 "configure"
  2024. #include "confdefs.h"
  2025. #include <stdlib.h>
  2026. #include <stdarg.h>
  2027. #include <string.h>
  2028. #include <float.h>
  2029. EOF
  2030. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2031. ac_err=`grep -v '^ *+' conftest.out`
  2032. if test -z "$ac_err"; then
  2033.   rm -rf conftest*
  2034.   ac_cv_header_stdc=yes
  2035. else
  2036.   echo "$ac_err" >&5
  2037.   rm -rf conftest*
  2038.   ac_cv_header_stdc=no
  2039. fi
  2040. rm -f conftest*
  2041.  
  2042. if test $ac_cv_header_stdc = yes; then
  2043.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2044. cat > conftest.$ac_ext <<EOF
  2045. #line 2046 "configure"
  2046. #include "confdefs.h"
  2047. #include <string.h>
  2048. EOF
  2049. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2050.   egrep "memchr" >/dev/null 2>&1; then
  2051.   :
  2052. else
  2053.   rm -rf conftest*
  2054.   ac_cv_header_stdc=no
  2055. fi
  2056. rm -f conftest*
  2057.  
  2058. fi
  2059.  
  2060. if test $ac_cv_header_stdc = yes; then
  2061.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2062. cat > conftest.$ac_ext <<EOF
  2063. #line 2064 "configure"
  2064. #include "confdefs.h"
  2065. #include <stdlib.h>
  2066. EOF
  2067. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2068.   egrep "free" >/dev/null 2>&1; then
  2069.   :
  2070. else
  2071.   rm -rf conftest*
  2072.   ac_cv_header_stdc=no
  2073. fi
  2074. rm -f conftest*
  2075.  
  2076. fi
  2077.  
  2078. if test $ac_cv_header_stdc = yes; then
  2079.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2080. if test "$cross_compiling" = yes; then
  2081.   :
  2082. else
  2083. cat > conftest.$ac_ext <<EOF
  2084. #line 2085 "configure"
  2085. #include "confdefs.h"
  2086. #include <ctype.h>
  2087. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2088. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2089. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2090. int main () { int i; for (i = 0; i < 256; i++)
  2091. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2092. exit (0); }
  2093.  
  2094. EOF
  2095. eval $ac_link
  2096. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2097.   :
  2098. else
  2099.   ac_cv_header_stdc=no
  2100. fi
  2101. fi
  2102. rm -fr conftest*
  2103. fi
  2104. fi
  2105.  
  2106. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2107. if test $ac_cv_header_stdc = yes; then
  2108.   cat >> confdefs.h <<\EOF
  2109. #define STDC_HEADERS 1
  2110. EOF
  2111.  
  2112. fi
  2113.  
  2114. for ac_hdr in stdio.h stdlib.h string.h unistd.h ctype.h assert.h signal.h fcntl.h
  2115. do
  2116. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2117. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2118. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2119.   echo $ac_n "(cached) $ac_c" 1>&6
  2120. else
  2121.   cat > conftest.$ac_ext <<EOF
  2122. #line 2123 "configure"
  2123. #include "confdefs.h"
  2124. #include <$ac_hdr>
  2125. EOF
  2126. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2127. ac_err=`grep -v '^ *+' conftest.out`
  2128. if test -z "$ac_err"; then
  2129.   rm -rf conftest*
  2130.   eval "ac_cv_header_$ac_safe=yes"
  2131. else
  2132.   echo "$ac_err" >&5
  2133.   rm -rf conftest*
  2134.   eval "ac_cv_header_$ac_safe=no"
  2135. fi
  2136. rm -f conftest*
  2137. fi
  2138. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2139.   echo "$ac_t""yes" 1>&6
  2140.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2141.   cat >> confdefs.h <<EOF
  2142. #define $ac_tr_hdr 1
  2143. EOF
  2144.  
  2145. else
  2146.   echo "$ac_t""no" 1>&6
  2147. fi
  2148. done
  2149.  
  2150. for ac_hdr in termio.h termios.h sgtty.h
  2151. do
  2152. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2153. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2154. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2155.   echo $ac_n "(cached) $ac_c" 1>&6
  2156. else
  2157.   cat > conftest.$ac_ext <<EOF
  2158. #line 2159 "configure"
  2159. #include "confdefs.h"
  2160. #include <$ac_hdr>
  2161. EOF
  2162. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2163. ac_err=`grep -v '^ *+' conftest.out`
  2164. if test -z "$ac_err"; then
  2165.   rm -rf conftest*
  2166.   eval "ac_cv_header_$ac_safe=yes"
  2167. else
  2168.   echo "$ac_err" >&5
  2169.   rm -rf conftest*
  2170.   eval "ac_cv_header_$ac_safe=no"
  2171. fi
  2172. rm -f conftest*
  2173. fi
  2174. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2175.   echo "$ac_t""yes" 1>&6
  2176.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2177.   cat >> confdefs.h <<EOF
  2178. #define $ac_tr_hdr 1
  2179. EOF
  2180.  
  2181. else
  2182.   echo "$ac_t""no" 1>&6
  2183. fi
  2184. done
  2185.  
  2186. if test "$gcal_enable_term" = yes; then
  2187.   if test "$gcal_termcap_ok" = yes || test "$gcal_termlib_ok" = yes; then
  2188.     for ac_hdr in termcap.h
  2189. do
  2190. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2191. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2192. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2193.   echo $ac_n "(cached) $ac_c" 1>&6
  2194. else
  2195.   cat > conftest.$ac_ext <<EOF
  2196. #line 2197 "configure"
  2197. #include "confdefs.h"
  2198. #include <$ac_hdr>
  2199. EOF
  2200. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2201. ac_err=`grep -v '^ *+' conftest.out`
  2202. if test -z "$ac_err"; then
  2203.   rm -rf conftest*
  2204.   eval "ac_cv_header_$ac_safe=yes"
  2205. else
  2206.   echo "$ac_err" >&5
  2207.   rm -rf conftest*
  2208.   eval "ac_cv_header_$ac_safe=no"
  2209. fi
  2210. rm -f conftest*
  2211. fi
  2212. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2213.   echo "$ac_t""yes" 1>&6
  2214.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2215.   cat >> confdefs.h <<EOF
  2216. #define $ac_tr_hdr 1
  2217. EOF
  2218.  
  2219. else
  2220.   echo "$ac_t""no" 1>&6
  2221. fi
  2222. done
  2223.  
  2224.   fi
  2225. fi #Using termlibs
  2226. for ac_hdr in sys/ioctl.h sys/stream.h sys/ptem.h sys/types.h sys/time.h
  2227. do
  2228. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2229. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2230. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2231.   echo $ac_n "(cached) $ac_c" 1>&6
  2232. else
  2233.   cat > conftest.$ac_ext <<EOF
  2234. #line 2235 "configure"
  2235. #include "confdefs.h"
  2236. #include <$ac_hdr>
  2237. EOF
  2238. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2239. ac_err=`grep -v '^ *+' conftest.out`
  2240. if test -z "$ac_err"; then
  2241.   rm -rf conftest*
  2242.   eval "ac_cv_header_$ac_safe=yes"
  2243. else
  2244.   echo "$ac_err" >&5
  2245.   rm -rf conftest*
  2246.   eval "ac_cv_header_$ac_safe=no"
  2247. fi
  2248. rm -f conftest*
  2249. fi
  2250. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2251.   echo "$ac_t""yes" 1>&6
  2252.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2253.   cat >> confdefs.h <<EOF
  2254. #define $ac_tr_hdr 1
  2255. EOF
  2256.  
  2257. else
  2258.   echo "$ac_t""no" 1>&6
  2259. fi
  2260. done
  2261.  
  2262. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  2263. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  2264.   echo $ac_n "(cached) $ac_c" 1>&6
  2265. else
  2266.   cat > conftest.$ac_ext <<EOF
  2267. #line 2268 "configure"
  2268. #include "confdefs.h"
  2269. #include <sys/types.h>
  2270. #include <sys/wait.h>
  2271. #ifndef WEXITSTATUS
  2272. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2273. #endif
  2274. #ifndef WIFEXITED
  2275. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2276. #endif
  2277. int main() { return 0; }
  2278. int t() {
  2279. int s;
  2280. wait (&s);
  2281. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2282. ; return 0; }
  2283. EOF
  2284. if eval $ac_compile; then
  2285.   rm -rf conftest*
  2286.   ac_cv_header_sys_wait_h=yes
  2287. else
  2288.   rm -rf conftest*
  2289.   ac_cv_header_sys_wait_h=no
  2290. fi
  2291. rm -f conftest*
  2292.  
  2293. fi
  2294.  
  2295. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  2296. if test $ac_cv_header_sys_wait_h = yes; then
  2297.   cat >> confdefs.h <<\EOF
  2298. #define HAVE_SYS_WAIT_H 1
  2299. EOF
  2300.  
  2301. fi
  2302.  
  2303.  
  2304. echo "$ac_t""" 1>&6
  2305. echo "checking for typedefs" 1>&6
  2306. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2307. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2308.   echo $ac_n "(cached) $ac_c" 1>&6
  2309. else
  2310.   cat > conftest.$ac_ext <<EOF
  2311. #line 2312 "configure"
  2312. #include "confdefs.h"
  2313. #include <sys/types.h>
  2314. #if STDC_HEADERS
  2315. #include <stdlib.h>
  2316. #endif
  2317. EOF
  2318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2319.   egrep "pid_t" >/dev/null 2>&1; then
  2320.   rm -rf conftest*
  2321.   ac_cv_type_pid_t=yes
  2322. else
  2323.   rm -rf conftest*
  2324.   ac_cv_type_pid_t=no
  2325. fi
  2326. rm -f conftest*
  2327.  
  2328. fi
  2329. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2330. if test $ac_cv_type_pid_t = no; then
  2331.   cat >> confdefs.h <<\EOF
  2332. #define pid_t int
  2333. EOF
  2334.  
  2335. fi
  2336.  
  2337. echo $ac_n "checking for time_t""... $ac_c" 1>&6
  2338. if eval "test \"`echo '$''{'gcal_cv_type_time_t'+set}'`\" = set"; then
  2339.   echo $ac_n "(cached) $ac_c" 1>&6
  2340. else
  2341.   cat > conftest.$ac_ext <<EOF
  2342. #line 2343 "configure"
  2343. #include "confdefs.h"
  2344.  
  2345.     #if TIME_WITH_SYS_TIME
  2346.     #  include <sys/time.h>
  2347.     #  include <time.h>
  2348.     #else
  2349.     #  if HAVE_SYS_TIME_H
  2350.     #    include <sys/time.h>
  2351.     #  else
  2352.     #    include <time.h>
  2353.     #  endif
  2354.     #endif
  2355. int main() { return 0; }
  2356. int t() {
  2357. time_t t = 0;
  2358. ; return 0; }
  2359. EOF
  2360. if eval $ac_compile; then
  2361.   rm -rf conftest*
  2362.   gcal_cv_type_time_t=yes
  2363. else
  2364.   rm -rf conftest*
  2365.   gcal_cv_type_time_t=no
  2366. fi
  2367. rm -f conftest*
  2368.  
  2369. fi
  2370.  
  2371. if test "$gcal_cv_type_time_t" = yes; then
  2372.   cat >> confdefs.h <<\EOF
  2373. #define HAVE_TIME_T 1
  2374. EOF
  2375.  
  2376. fi
  2377. echo "$ac_t""$gcal_cv_type_time_t" 1>&6
  2378.  
  2379. echo "$ac_t""" 1>&6
  2380. echo "checking for structures" 1>&6
  2381. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2382. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2383.   echo $ac_n "(cached) $ac_c" 1>&6
  2384. else
  2385.   cat > conftest.$ac_ext <<EOF
  2386. #line 2387 "configure"
  2387. #include "confdefs.h"
  2388. #include <sys/types.h>
  2389. #include <sys/time.h>
  2390. #include <time.h>
  2391. int main() { return 0; }
  2392. int t() {
  2393. struct tm *tp;
  2394. ; return 0; }
  2395. EOF
  2396. if eval $ac_compile; then
  2397.   rm -rf conftest*
  2398.   ac_cv_header_time=yes
  2399. else
  2400.   rm -rf conftest*
  2401.   ac_cv_header_time=no
  2402. fi
  2403. rm -f conftest*
  2404.  
  2405. fi
  2406.  
  2407. echo "$ac_t""$ac_cv_header_time" 1>&6
  2408. if test $ac_cv_header_time = yes; then
  2409.   cat >> confdefs.h <<\EOF
  2410. #define TIME_WITH_SYS_TIME 1
  2411. EOF
  2412.  
  2413. fi
  2414.  
  2415.  
  2416. echo "$ac_t""" 1>&6
  2417. echo "checking for compiler characteristics" 1>&6
  2418. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2419. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2420.   echo $ac_n "(cached) $ac_c" 1>&6
  2421. else
  2422.   cat > conftest.$ac_ext <<EOF
  2423. #line 2424 "configure"
  2424. #include "confdefs.h"
  2425.  
  2426. int main() { return 0; }
  2427. int t() {
  2428.  
  2429. /* Ultrix mips cc rejects this.  */
  2430. typedef int charset[2]; const charset x;
  2431. /* SunOS 4.1.1 cc rejects this.  */
  2432. char const *const *ccp;
  2433. char **p;
  2434. /* NEC SVR4.0.2 mips cc rejects this.  */
  2435. struct point {int x, y;};
  2436. static struct point const zero = {0,0};
  2437. /* AIX XL C 1.02.0.0 rejects this.
  2438.    It does not let you subtract one const X* pointer from another in an arm
  2439.    of an if-expression whose if-part is not a constant expression */
  2440. const char *g = "string";
  2441. ccp = &g + (g ? g-g : 0);
  2442. /* HPUX 7.0 cc rejects these. */
  2443. ++ccp;
  2444. p = (char**) ccp;
  2445. ccp = (char const *const *) p;
  2446. { /* SCO 3.2v4 cc rejects this.  */
  2447.   char *t;
  2448.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2449.  
  2450.   *t++ = 0;
  2451. }
  2452. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2453.   int x[] = {25, 17};
  2454.   const int *foo = &x[0];
  2455.   ++foo;
  2456. }
  2457. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2458.   typedef const int *iptr;
  2459.   iptr p = 0;
  2460.   ++p;
  2461. }
  2462. { /* AIX XL C 1.02.0.0 rejects this saying
  2463.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2464.   struct s { int j; const int *ap[3]; };
  2465.   struct s *b; b->j = 5;
  2466. }
  2467. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2468.   const int foo = 10;
  2469. }
  2470.  
  2471. ; return 0; }
  2472. EOF
  2473. if eval $ac_compile; then
  2474.   rm -rf conftest*
  2475.   ac_cv_c_const=yes
  2476. else
  2477.   rm -rf conftest*
  2478.   ac_cv_c_const=no
  2479. fi
  2480. rm -f conftest*
  2481.  
  2482. fi
  2483.  
  2484. echo "$ac_t""$ac_cv_c_const" 1>&6
  2485. if test $ac_cv_c_const = no; then
  2486.   cat >> confdefs.h <<\EOF
  2487. #define const 
  2488. EOF
  2489.  
  2490. fi
  2491.  
  2492. echo $ac_n "checking for void""... $ac_c" 1>&6
  2493. if eval "test \"`echo '$''{'gcal_cv_c_void'+set}'`\" = set"; then
  2494.   echo $ac_n "(cached) $ac_c" 1>&6
  2495. else
  2496.   cat > conftest.$ac_ext <<EOF
  2497. #line 2498 "configure"
  2498. #include "confdefs.h"
  2499.  
  2500. int main() { return 0; }
  2501. int t() {
  2502. void *foo = 0;
  2503. ; return 0; }
  2504. EOF
  2505. if eval $ac_compile; then
  2506.   rm -rf conftest*
  2507.   gcal_cv_c_void=yes
  2508. else
  2509.   rm -rf conftest*
  2510.   gcal_cv_c_void=no
  2511. fi
  2512. rm -f conftest*
  2513.  
  2514. fi
  2515.  
  2516. if test "$gcal_cv_c_void" = yes; then
  2517.   cat >> confdefs.h <<\EOF
  2518. #define HAVE_VOID 1
  2519. EOF
  2520.  
  2521. fi
  2522. echo "$ac_t""$gcal_cv_c_void" 1>&6
  2523.  
  2524. echo "$ac_t""" 1>&6
  2525. echo "checking for library functions" 1>&6
  2526. for ac_func in dup dup2 strtol strstr strchr strrchr
  2527. do
  2528. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2529. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2530.   echo $ac_n "(cached) $ac_c" 1>&6
  2531. else
  2532.   cat > conftest.$ac_ext <<EOF
  2533. #line 2534 "configure"
  2534. #include "confdefs.h"
  2535. /* System header to define __stub macros and hopefully few prototypes,
  2536.     which can conflict with char $ac_func(); below.  */
  2537. #include <assert.h>
  2538. /* Override any gcc2 internal prototype to avoid an error.  */
  2539. char $ac_func();
  2540.  
  2541. int main() { return 0; }
  2542. int t() {
  2543.  
  2544. /* The GNU C library defines this for functions which it implements
  2545.     to always fail with ENOSYS.  Some functions are actually named
  2546.     something starting with __ and the normal name is an alias.  */
  2547. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2548. choke me
  2549. #else
  2550. $ac_func();
  2551. #endif
  2552.  
  2553. ; return 0; }
  2554. EOF
  2555. if eval $ac_link; then
  2556.   rm -rf conftest*
  2557.   eval "ac_cv_func_$ac_func=yes"
  2558. else
  2559.   rm -rf conftest*
  2560.   eval "ac_cv_func_$ac_func=no"
  2561. fi
  2562. rm -f conftest*
  2563.  
  2564. fi
  2565. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2566.   echo "$ac_t""yes" 1>&6
  2567.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2568.   cat >> confdefs.h <<EOF
  2569. #define $ac_tr_func 1
  2570. EOF
  2571.  
  2572. else
  2573.   echo "$ac_t""no" 1>&6
  2574. fi
  2575. done
  2576.  
  2577. echo $ac_n "checking for tcgetattr""... $ac_c" 1>&6
  2578. if eval "test \"`echo '$''{'ac_cv_func_tcgetattr'+set}'`\" = set"; then
  2579.   echo $ac_n "(cached) $ac_c" 1>&6
  2580. else
  2581.   cat > conftest.$ac_ext <<EOF
  2582. #line 2583 "configure"
  2583. #include "confdefs.h"
  2584. /* System header to define __stub macros and hopefully few prototypes,
  2585.     which can conflict with char tcgetattr(); below.  */
  2586. #include <assert.h>
  2587. /* Override any gcc2 internal prototype to avoid an error.  */
  2588. char tcgetattr();
  2589.  
  2590. int main() { return 0; }
  2591. int t() {
  2592.  
  2593. /* The GNU C library defines this for functions which it implements
  2594.     to always fail with ENOSYS.  Some functions are actually named
  2595.     something starting with __ and the normal name is an alias.  */
  2596. #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
  2597. choke me
  2598. #else
  2599. tcgetattr();
  2600. #endif
  2601.  
  2602. ; return 0; }
  2603. EOF
  2604. if eval $ac_link; then
  2605.   rm -rf conftest*
  2606.   eval "ac_cv_func_tcgetattr=yes"
  2607. else
  2608.   rm -rf conftest*
  2609.   eval "ac_cv_func_tcgetattr=no"
  2610. fi
  2611. rm -f conftest*
  2612.  
  2613. fi
  2614. if eval "test \"`echo '$ac_cv_func_'tcgetattr`\" = yes"; then
  2615.   echo "$ac_t""yes" 1>&6
  2616.   cat >> confdefs.h <<\EOF
  2617. #define HAVE_TERMIOS_FUNCS 1
  2618. EOF
  2619.  
  2620. else
  2621.   echo "$ac_t""no" 1>&6
  2622. fi
  2623.  
  2624. echo "$ac_t""" 1>&6
  2625. echo "checking for ctype library functions" 1>&6
  2626. echo $ac_n "checking for isdigit""... $ac_c" 1>&6
  2627. if eval "test \"`echo '$''{'gcal_cv_func_isdigit'+set}'`\" = set"; then
  2628.   echo $ac_n "(cached) $ac_c" 1>&6
  2629. else
  2630.   cat > conftest.$ac_ext <<EOF
  2631. #line 2632 "configure"
  2632. #include "confdefs.h"
  2633.  
  2634.     #if HAVE_CTYPE_H
  2635.     #  include <ctype.h>
  2636.     #endif
  2637. int main() { return 0; }
  2638. int t() {
  2639. static int x; x = isdigit(x);
  2640. ; return 0; }
  2641. EOF
  2642. if eval $ac_link; then
  2643.   rm -rf conftest*
  2644.   gcal_cv_func_isdigit=yes
  2645. else
  2646.   rm -rf conftest*
  2647.   gcal_cv_func_isdigit=no
  2648. fi
  2649. rm -f conftest*
  2650.  
  2651. fi
  2652.  
  2653. if test "$gcal_cv_func_isdigit" = yes; then
  2654.   cat >> confdefs.h <<\EOF
  2655. #define HAVE_ISDIGIT 1
  2656. EOF
  2657.  
  2658. fi
  2659. echo "$ac_t""$gcal_cv_func_isdigit" 1>&6
  2660. echo $ac_n "checking for isalnum""... $ac_c" 1>&6
  2661. if eval "test \"`echo '$''{'gcal_cv_func_isalnum'+set}'`\" = set"; then
  2662.   echo $ac_n "(cached) $ac_c" 1>&6
  2663. else
  2664.   cat > conftest.$ac_ext <<EOF
  2665. #line 2666 "configure"
  2666. #include "confdefs.h"
  2667.  
  2668.     #if HAVE_CTYPE_H
  2669.     #  include <ctype.h>
  2670.     #endif
  2671. int main() { return 0; }
  2672. int t() {
  2673. static int x; x = isalnum(x);
  2674. ; return 0; }
  2675. EOF
  2676. if eval $ac_link; then
  2677.   rm -rf conftest*
  2678.   gcal_cv_func_isalnum=yes
  2679. else
  2680.   rm -rf conftest*
  2681.   gcal_cv_func_isalnum=no
  2682. fi
  2683. rm -f conftest*
  2684.  
  2685. fi
  2686.  
  2687. if test "$gcal_cv_func_isalnum" = yes; then
  2688.   cat >> confdefs.h <<\EOF
  2689. #define HAVE_ISALNUM 1
  2690. EOF
  2691.  
  2692. fi
  2693. echo "$ac_t""$gcal_cv_func_isalnum" 1>&6
  2694. echo $ac_n "checking for upper/lower""... $ac_c" 1>&6
  2695. if eval "test \"`echo '$''{'gcal_cv_func_upper_lower'+set}'`\" = set"; then
  2696.   echo $ac_n "(cached) $ac_c" 1>&6
  2697. else
  2698.   cat > conftest.$ac_ext <<EOF
  2699. #line 2700 "configure"
  2700. #include "confdefs.h"
  2701.  
  2702.     #if HAVE_CTYPE_H
  2703.     #  include <ctype.h>
  2704.     #endif
  2705. int main() { return 0; }
  2706. int t() {
  2707. static int x; x = tolower(x); x = toupper(x); x = islower(x); x = isupper(x);
  2708. ; return 0; }
  2709. EOF
  2710. if eval $ac_link; then
  2711.   rm -rf conftest*
  2712.   gcal_cv_func_upper_lower=yes
  2713. else
  2714.   rm -rf conftest*
  2715.   gcal_cv_func_upper_lower=no
  2716. fi
  2717. rm -f conftest*
  2718.  
  2719. fi
  2720.  
  2721. if test "$gcal_cv_func_upper_lower" = yes; then
  2722.   cat >> confdefs.h <<\EOF
  2723. #define HAVE_UPPER_LOWER 1
  2724. EOF
  2725.  
  2726. fi
  2727. echo "$ac_t""$gcal_cv_func_upper_lower" 1>&6
  2728.  
  2729. echo "$ac_t""" 1>&6
  2730. echo "checking for external variables" 1>&6
  2731. if test "$gcal_enable_term" = yes; then
  2732.   if test "$gcal_termcap_ok" = yes || test "$gcal_termlib_ok" = yes; then
  2733.     if test "$gcal_termcap_ok" = yes; then
  2734.       echo $ac_n "checking termcap for ospeed""... $ac_c" 1>&6
  2735.     else
  2736.       echo $ac_n "checking termlib for ospeed""... $ac_c" 1>&6
  2737.     fi
  2738.     if eval "test \"`echo '$''{'gcal_cv_var_ospeed_test_1'+set}'`\" = set"; then
  2739.   echo $ac_n "(cached) $ac_c" 1>&6
  2740. else
  2741.   cat > conftest.$ac_ext <<EOF
  2742. #line 2743 "configure"
  2743. #include "confdefs.h"
  2744.  
  2745.         #if HAVE_SYS_TYPES_H
  2746.         #  include <sys/types.h>
  2747.         #endif
  2748.         #if HAVE_TERMIOS_H
  2749.         #  include <termios.h>
  2750.         #endif
  2751.         #if HAVE_TERMCAP_H
  2752.         #  include <termcap.h>
  2753.         #endif
  2754. int main() { return 0; }
  2755. int t() {
  2756. ospeed = 0;
  2757. ; return 0; }
  2758. EOF
  2759. if eval $ac_link; then
  2760.   rm -rf conftest*
  2761.   gcal_cv_var_ospeed_test_1=yes
  2762. else
  2763.   rm -rf conftest*
  2764.   gcal_cv_var_ospeed_test_1=no
  2765. fi
  2766. rm -f conftest*
  2767.  
  2768. fi
  2769.  
  2770.     if test "$gcal_cv_var_ospeed_test_1" = no; then
  2771.       if eval "test \"`echo '$''{'gcal_cv_var_ospeed_test_2'+set}'`\" = set"; then
  2772.   echo $ac_n "(cached) $ac_c" 1>&6
  2773. else
  2774.   cat > conftest.$ac_ext <<EOF
  2775. #line 2776 "configure"
  2776. #include "confdefs.h"
  2777.  
  2778. int main() { return 0; }
  2779. int t() {
  2780. extern short ospeed; ospeed = 0;
  2781. ; return 0; }
  2782. EOF
  2783. if eval $ac_link; then
  2784.   rm -rf conftest*
  2785.   gcal_cv_var_ospeed_test_2=yes
  2786. else
  2787.   rm -rf conftest*
  2788.   gcal_cv_var_ospeed_test_2=no
  2789. fi
  2790. rm -f conftest*
  2791.  
  2792. fi
  2793.  
  2794.     fi
  2795.     if test "$gcal_cv_var_ospeed_test_1" = yes || test "$gcal_cv_var_ospeed_test_2" = yes; then
  2796.       cat >> confdefs.h <<\EOF
  2797. #define HAVE_OSPEED 1
  2798. EOF
  2799.  
  2800.       if test "$gcal_cv_var_ospeed_test_2" = yes; then
  2801.         cat >> confdefs.h <<\EOF
  2802. #define MUST_DCL_OSPEED 1
  2803. EOF
  2804.  
  2805.       fi
  2806.       echo "$ac_t""yes" 1>&6
  2807.     else
  2808.       echo "$ac_t""no" 1>&6
  2809.     fi
  2810.   fi
  2811. fi #Using termlibs
  2812.  
  2813. echo "$ac_t""" 1>&6
  2814. echo "checking for system services" 1>&6
  2815. # Pull the hash mark out of the macro call to avoid m4 problems.
  2816. ac_msg="whether #! works in shell scripts"
  2817. echo $ac_n "checking $ac_msg""... $ac_c" 1>&6
  2818. if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then
  2819.   echo $ac_n "(cached) $ac_c" 1>&6
  2820. else
  2821.   echo '#! /bin/cat
  2822. exit 69
  2823. ' > conftest
  2824. chmod u+x conftest
  2825. (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
  2826. if test $? -ne 69; then
  2827.    ac_cv_sys_interpreter=yes
  2828. else
  2829.    ac_cv_sys_interpreter=no
  2830. fi
  2831. rm -f conftest
  2832. fi
  2833.  
  2834. echo "$ac_t""$ac_cv_sys_interpreter" 1>&6
  2835.  
  2836. if test "$ac_cv_sys_interpreter" = yes; then
  2837.   cat >> confdefs.h <<\EOF
  2838. #define HAVE_SYS_INTERPRETER 1
  2839. EOF
  2840.  
  2841. fi
  2842.  
  2843. echo "$ac_t""" 1>&6
  2844. trap '' 1 2 15
  2845. cat > confcache <<\EOF
  2846. # This file is a shell script that caches the results of configure
  2847. # tests run on this system so they can be shared between configure
  2848. # scripts and configure runs.  It is not useful on other systems.
  2849. # If it contains results you don't want to keep, you may remove or edit it.
  2850. #
  2851. # By default, configure uses ./config.cache as the cache file,
  2852. # creating it if it does not exist already.  You can give configure
  2853. # the --cache-file=FILE option to use a different cache file; that is
  2854. # what configure does when it calls configure scripts in
  2855. # subdirectories, so they share the cache.
  2856. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2857. # config.status only pays attention to the cache file if you give it the
  2858. # --recheck option to rerun configure.
  2859. #
  2860. EOF
  2861. # Ultrix sh set writes to stderr and can't be redirected directly,
  2862. # and sets the high bit in the cache file unless we assign to the vars.
  2863. (set) 2>&1 |
  2864.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2865.   >> confcache
  2866. if cmp -s $cache_file confcache; then
  2867.   :
  2868. else
  2869.   if test -w $cache_file; then
  2870.     echo "updating cache $cache_file"
  2871.     cat confcache > $cache_file
  2872.   else
  2873.     echo "not updating unwritable cache $cache_file"
  2874.   fi
  2875. fi
  2876. rm -f confcache
  2877.  
  2878. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2879.  
  2880. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2881. # Let make expand exec_prefix.
  2882. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2883.  
  2884. # Any assignment to VPATH causes Sun make to only execute
  2885. # the first set of double-colon rules, so remove it if not needed.
  2886. # If there is a colon in the path, we need to keep it.
  2887. if test "x$srcdir" = x.; then
  2888.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2889. fi
  2890.  
  2891. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2892.  
  2893. DEFS=-DHAVE_CONFIG_H
  2894.  
  2895. # Without the "./", some shells look in PATH for config.status.
  2896. : ${CONFIG_STATUS=./config.status}
  2897.  
  2898. echo creating $CONFIG_STATUS
  2899. rm -f $CONFIG_STATUS
  2900. cat > $CONFIG_STATUS <<EOF
  2901. #! /bin/sh
  2902. # Generated automatically by configure.
  2903. # Run this file to recreate the current configuration.
  2904. # This directory was configured as follows,
  2905. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2906. #
  2907. # $0 $ac_configure_args
  2908. #
  2909. # Compiler output produced by configure, useful for debugging
  2910. # configure, is in ./config.log if it exists.
  2911.  
  2912. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2913. for ac_option
  2914. do
  2915.   case "\$ac_option" in
  2916.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2917.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2918.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2919.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2920.     echo "$CONFIG_STATUS generated by autoconf version 2.7"
  2921.     exit 0 ;;
  2922.   -help | --help | --hel | --he | --h)
  2923.     echo "\$ac_cs_usage"; exit 0 ;;
  2924.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2925.   esac
  2926. done
  2927.  
  2928. ac_given_srcdir=$srcdir
  2929. ac_given_INSTALL="$INSTALL"
  2930.  
  2931. trap 'rm -fr `echo "Makefile gcal_cfg.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2932. EOF
  2933. cat >> $CONFIG_STATUS <<EOF
  2934.  
  2935. # Protect against being on the right side of a sed subst in config.status.
  2936. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2937.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2938. $ac_vpsub
  2939. $extrasub
  2940. s%@CFLAGS@%$CFLAGS%g
  2941. s%@CPPFLAGS@%$CPPFLAGS%g
  2942. s%@CXXFLAGS@%$CXXFLAGS%g
  2943. s%@DEFS@%$DEFS%g
  2944. s%@LDFLAGS@%$LDFLAGS%g
  2945. s%@LIBS@%$LIBS%g
  2946. s%@exec_prefix@%$exec_prefix%g
  2947. s%@prefix@%$prefix%g
  2948. s%@program_transform_name@%$program_transform_name%g
  2949. s%@bindir@%$bindir%g
  2950. s%@sbindir@%$sbindir%g
  2951. s%@libexecdir@%$libexecdir%g
  2952. s%@datadir@%$datadir%g
  2953. s%@sysconfdir@%$sysconfdir%g
  2954. s%@sharedstatedir@%$sharedstatedir%g
  2955. s%@localstatedir@%$localstatedir%g
  2956. s%@libdir@%$libdir%g
  2957. s%@includedir@%$includedir%g
  2958. s%@oldincludedir@%$oldincludedir%g
  2959. s%@infodir@%$infodir%g
  2960. s%@mandir@%$mandir%g
  2961. s%@LINE@%$LINE%g
  2962. s%@lang@%$lang%g
  2963. s%@MAKEINFO@%$MAKEINFO%g
  2964. s%@MAKEINFOVERSION@%$MAKEINFOVERSION%g
  2965. s%@TEXI2DVI@%$TEXI2DVI%g
  2966. s%@SHAR@%$SHAR%g
  2967. s%@ZIP@%$ZIP%g
  2968. s%@ZOO@%$ZOO%g
  2969. s%@FIND@%$FIND%g
  2970. s%@LHA@%$LHA%g
  2971. s%@TAR@%$TAR%g
  2972. s%@GZIP@%$GZIP%g
  2973. s%@COMPRESS@%$COMPRESS%g
  2974. s%@PERL@%$PERL%g
  2975. s%@AWK@%$AWK%g
  2976. s%@PAGER1@%$PAGER1%g
  2977. s%@PAGER2@%$PAGER2%g
  2978. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2979. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2980. s%@CC@%$CC%g
  2981. s%@CPP@%$CPP%g
  2982.  
  2983. CEOF
  2984. EOF
  2985. cat >> $CONFIG_STATUS <<EOF
  2986.  
  2987. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2988. EOF
  2989. cat >> $CONFIG_STATUS <<\EOF
  2990. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2991.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2992.   case "$ac_file" in
  2993.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2994.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2995.   *) ac_file_in="${ac_file}.in" ;;
  2996.   esac
  2997.  
  2998.   # Adjust relative srcdir, etc. for subdirectories.
  2999.  
  3000.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3001.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3002.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3003.     # The file is in a subdirectory.
  3004.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3005.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3006.     # A "../" for each directory in $ac_dir_suffix.
  3007.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3008.   else
  3009.     ac_dir_suffix= ac_dots=
  3010.   fi
  3011.  
  3012.   case "$ac_given_srcdir" in
  3013.   .)  srcdir=.
  3014.       if test -z "$ac_dots"; then top_srcdir=.
  3015.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3016.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3017.   *) # Relative path.
  3018.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3019.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3020.   esac
  3021.  
  3022.   case "$ac_given_INSTALL" in
  3023.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3024.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3025.   esac
  3026.   echo creating "$ac_file"
  3027.   rm -f "$ac_file"
  3028.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3029.   case "$ac_file" in
  3030.   *Makefile*) ac_comsub="1i\\
  3031. # $configure_input" ;;
  3032.   *) ac_comsub= ;;
  3033.   esac
  3034.   sed -e "$ac_comsub
  3035. s%@configure_input@%$configure_input%g
  3036. s%@srcdir@%$srcdir%g
  3037. s%@top_srcdir@%$top_srcdir%g
  3038. s%@INSTALL@%$INSTALL%g
  3039. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3040. fi; done
  3041. rm -f conftest.subs
  3042.  
  3043. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3044. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3045. #
  3046. # ac_d sets the value in "#define NAME VALUE" lines.
  3047. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3048. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3049. ac_dC='\3'
  3050. ac_dD='%g'
  3051. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3052. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3053. ac_uB='\([     ]\)%\1#\2define\3'
  3054. ac_uC=' '
  3055. ac_uD='\4%g'
  3056. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3057. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3058. ac_eB='$%\1#\2define\3'
  3059. ac_eC=' '
  3060. ac_eD='%g'
  3061.  
  3062. CONFIG_HEADERS=${CONFIG_HEADERS-"gcal_cfg.h"}
  3063. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3064.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3065.   case "$ac_file" in
  3066.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3067.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3068.   *) ac_file_in="${ac_file}.in" ;;
  3069.   esac
  3070.  
  3071.   echo creating $ac_file
  3072.  
  3073.   rm -f conftest.frag conftest.in conftest.out
  3074.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3075.  
  3076. EOF
  3077.  
  3078. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3079. # the proper values into config.h.in to produce config.h.  And first:
  3080. # Protect against being on the right side of a sed subst in config.status.
  3081. # Protect against being in an unquoted here document in config.status.
  3082. rm -f conftest.vals
  3083. cat > conftest.hdr <<\EOF
  3084. s/[\\&%]/\\&/g
  3085. s%[\\$`]%\\&%g
  3086. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3087. s%ac_d%ac_u%gp
  3088. s%ac_u%ac_e%gp
  3089. EOF
  3090. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3091. rm -f conftest.hdr
  3092.  
  3093. # This sed command replaces #undef with comments.  This is necessary, for
  3094. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3095. # on some systems where configure will not decide to define it.
  3096. cat >> conftest.vals <<\EOF
  3097. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3098. EOF
  3099.  
  3100. # Break up conftest.vals because some shells have a limit on
  3101. # the size of here documents, and old seds have small limits too.
  3102. # Maximum number of lines to put in a single here document.
  3103. ac_max_here_lines=12
  3104.  
  3105. rm -f conftest.tail
  3106. while :
  3107. do
  3108.   ac_lines=`grep -c . conftest.vals`
  3109.   # grep -c gives empty output for an empty file on some AIX systems.
  3110.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3111.   # Write a limited-size here document to conftest.frag.
  3112.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3113.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3114.   echo 'CEOF
  3115.   sed -f conftest.frag conftest.in > conftest.out
  3116.   rm -f conftest.in
  3117.   mv conftest.out conftest.in
  3118. ' >> $CONFIG_STATUS
  3119.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3120.   rm -f conftest.vals
  3121.   mv conftest.tail conftest.vals
  3122. done
  3123. rm -f conftest.vals
  3124.  
  3125. cat >> $CONFIG_STATUS <<\EOF
  3126.   rm -f conftest.frag conftest.h
  3127.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3128.   cat conftest.in >> conftest.h
  3129.   rm -f conftest.in
  3130.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3131.     echo "$ac_file is unchanged"
  3132.     rm -f conftest.h
  3133.   else
  3134.     rm -f $ac_file
  3135.     mv conftest.h $ac_file
  3136.   fi
  3137. fi; done
  3138.  
  3139.  
  3140.  
  3141. exit 0
  3142. EOF
  3143. chmod +x $CONFIG_STATUS
  3144. rm -fr confdefs* $ac_clean_files
  3145. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3146.  
  3147. echo timestamp > stamp-h
  3148.  
  3149. echo
  3150. echo "Bored? Fallen asleep??   All checks done!"
  3151. echo
  3152. echo "Perhaps you might want to inspect the created"
  3153. echo "Makefile now for tuning some settings..."
  3154. echo
  3155.